Button variation
Hallo liebes Forum,
ich bin auf diese Seite gestoßen: https://webdeasy.de/en/top-css-buttons-en/
Button
#4 Icon Buttons
finde ich absolut Klasse!
Ich habe es mittlerweile hinbekommen, dass das Icon RECHTS ist:
Ich bin aber total verzweifelt: Ich möchte eine Variation des Buttons so haben, dass das ICON rechts UND links von der Schrift steht.
Könnt ihr mir da helfen?
Ich bekomme es einfach nicht hin ;(
LG und frohes neues Jahr noch.
Kommentar abgeben zu diesen Beitrag/Code ?Dann hier klicken
Der hier verwendete Code
<doctype html>
<html>
<head>
<style>
.btn {
border: none;
font-family: 'Lato';
font-size: inherit;
color: inherit;
cursor: pointer;
padding: 25px 80px;
margin: 15px 30px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
outline: none;
padding: 25px 120px 25px 120px;
position: relative;
transition: all 0.3s;
background: #3498db;
color: #fff;
}
.btn:before ,.btn:after{
font-family: 'FontAwesome';
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
position: relative;
-webkit-font-smoothing: antialiased;
background: rgba(0,0,0,0.15);
position: absolute;
height: 100%;
top: 0;
line-height: 3;