Menü kódja
<div align="center">
<div class="list-menu">
<ul>
<li>
<a href="/">Főoldal</a>
</li>
<li>
<a href="/">Leírások</a>
</li>
<li>
<a href="/">Grafika</a>
</li>
<li>
<a href="/">Kódok</a>
</li>
<li>
<a href="/" target="_blank">CSS témák</a>
</li>
</ul>
</div>
</div>
CSS kód
<style type="text/css">
ul{
counter-reset: li;
list-style: none;
}
.list-menu{
width: 500px;
font: 15px 'trebuchet MS', 'lucida sans';
text-shadow: 0 1px 0 rgba(0,0,0,0.5);
text-align: left;
}
.list-menu a{
position: relative;
display: block;
padding: .4em .4em .4em 2em;
margin: .5em 0;
background: #02A6BD;
color: #fff;
text-decoration: none;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
transition: all .3s ease-out;
}
.list-menu a:hover{
background: #000;
color:#fff;
text-shadow:none;
}
.list-menu a:hover:before{
transform: rotate(360deg);
}
.list-menu a:before{
content: counter(li);
counter-increment: li;
position: absolute;
left: -1.3em;
top: 50%;
color:#fff;
margin-top: -1.3em;
background: #000;
height: 2em;
width: 2em;
line-height: 2em;
border: .3em solid #fff;
text-align: center;
font-weight: bold;
border-radius: 2em;
transition: all .3s ease-out;
}</style>
3 161 megtekintés