Guten Tag liebes Forum,
von der Seite http://www.zella.de/code/social-media-01.html habe ich mir die Buttons, Quellcode und CSS Einträge geholt (Social 1 Beispiel). Die Buttons sind sehr schön und alles funktioniert schick. Allerdings würde ich gerne die Buttons vertikal untereinander rechts am Bildschirmrand platzieren und nicht horizontal.
Nach allen möglichem ausprobieren habe ich aufgegeben, da ich sehr wenig HTML u.Ä. Kenntnisse besitze. Wer hilft mir vielleicht weiter? Ist bestimmt nur ein Eintrag zu ändern
.
Hier der CSS Eintrag:
<style>
body {
text-align: center;
}
.buttons {
margin-top: 20px;
margin-bottom: 20px;
}
.buttons a {
margin-right: 30px;
width: 64px;
height: 64px;
display: inline-block;
position: relative;
line-height: 64px;
background-color: #eaeaea;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#eaeaea));
background-image: -webkit-linear-gradient(top, #f6f6f6, #eaeaea);
background-image: -moz-linear-gradient(top, #f6f6f6, #eaeaea);
background-image: -ms-linear-gradient(top, #f6f6f6, #eaeaea);
background-image: -o-linear-gradient(top, #f6f6f6, #eaeaea);
background-image: linear-gradient(top, #f6f6f6, #eaeaea);
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .1);
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .1);
box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .1);
}
.buttons a:active {
top: 1px;
background-image: -webkit-gradient(linear, left top, left bottom, from(#eaeaea), to(#f6f6f6));
background-image: -webkit-linear-gradient(top, #eaeaea, #f6f6f6);
background-image: -moz-linear-gradient(top, #eaeaea, #f6f6f6);
background-image: -ms-linear-gradient(top, #eaeaea, #f6f6f6);
background-image: -o-linear-gradient(top, #eaeaea, #f6f6f6);
background-image: linear-gradient(top, #eaeaea, #f6f6f6);
}
.buttons a::before{
content: '';
position: absolute;
z-index: -1;
top: -8px;
right: -8px;
bottom: -8px;
left: -8px;
background-color: #eaeaea;
-moz-border-radius: 140px;
-webkit-border-radius: 140px;
border-radius: 140px;
opacity: 0.5;
}
.buttons a:active::before {
top: -9px;
}
.buttons a:hover::before { opacity: 1; }
.buttons a.twitter:hover::before {
background-color: #c6f0f8;
}
.buttons a.youtube:hover::before {
background-color: #ff0202;
}
.buttons a.facebook:hover::before {
background-color: #33487f;
}
.buttons a img { border: 0; }
</style>
Danke und liebe Grüße! ![]()