24.03.2016.

CSS3 Horizontalni Meni Za Blog

CSS3 Horizontalni Meni 





Jos jedan CSS3 navigacioni meni koji ce ulepsati vas blog! Lako se dodaje u samo dva koraka.

  • Ulogujte se na blogger nalog i kliknite na Sablon > Izmeni HTML
  • Pronadjite (Ctrl+F)  ]]></b:skin> i iznad njega dodajte sledeci kod:

/* The CSS Code for the menu starts here bloggerisanje.blogspot.com */
ul{
margin:0;
padding:0;
}

li{
display:inline;
list-type:none;
}

a.glidebutton{
display: inline-block;
position: relative;
color: #4A4A4A; /* default color */
background: #ececec; /* default bg color */
text-decoration: none;
font: bold 14px Arial; /* font settings */
letter-spacing: 2px; /* font settings */
overflow: hidden;
height: 30px; /* height of each button */
text-align: center;
border-radius: 5px; /* border radius */
-moz-transition: all 0.3s ease-in-out; /* Enable CSS transition between property changes */
-webkit-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}

a.glidebutton > span:first-child{ /* first span inside button */
position: relative;
display: block;
height: 100%;
padding: 6px; /* padding of button */
-moz-box-sizing: border-box;
box-sizing: border-box;
-moz-transition: all 0.3s ease-in-out; /* Enable CSS transition between property changes */
-webkit-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}

a.glidebutton > span:first-child:after{ /* CSS generated content */
content: attr(data-text); /* Duplicate text of span markup */
display: block;
width: 100%;
height: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: inherit;
position: absolute;
top:100%;
left:0;
}

a.glidebutton:hover{
color: black; /* color of button on hover */
background: #72cb47; /* bg color of button on hover */
box-shadow: 0 0 4px green inset;
}

a.glidebutton:hover > span:first-child{
-moz-transform: translateY(-100%);
-webkit-transform: translateY(-100%);
-ms-transform: translateY(-100%);
-o-transform: translateY(-100%);
transform: translateY(-100%);
}

  • Sada idite na Izgled > Dodaj Gadzet > HTML/JavaScript
  • Dodajte sledeci kod:

<ul>
<li><a class="glidebutton" href="#"><span data-text="Pocetna">Pocetna</span></a></li>
<li><a class="glidebutton" href="#"><span data-text="Novosti">Novosti</span></a></li>
<li><a class="glidebutton" href="#"><span data-text="Bloggerisanje">Bloggerisanje</span></a></li>
<li><a class="glidebutton" href="#"><span data-text="Site Map">Site Map</span></a></li>
<li><a class="glidebutton" href="#"><span data-text="Download">Download</span></a></li>
<li><a class="glidebutton" href="#"><span data-text="O meni">O meni</span></a></li>
<li><a class="glidebutton" href="http://www.bloggerisanje.blogspot.com"><span data-text="Kontakt">Kontact</span></a></li>
</ul>

Zamenite # sa vasim linkom.

  • Sacuvajte.
To je to!

0 komentara:

Постави коментар