3D CSS buttons

RSS XML

Forum

Za pomocą elementu border-style CSS atrybutu początku, można łatwo utworzyć przycisk 3D.

w pliku css

<style type="text/css">

.rssbutton{
background-color: #ff6600;
border: 1px #ff6600 outset;
padding: 0 2px;
color: white;
text-decoration: none;
font: bold 10px Verdana;
}

.rssbutton:visited, .rssbutton:hover, .rssbutton:active{
color: white;
}

.cssbutton{
background-color: #d1ec4c;
border: 2px #d1ec4c outset;
padding: 1px 4px;
color: black;
text-decoration: none;
font: bold 90% "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
}

.cssbutton:visited{
color: black;
}

.cssbutton:hover{
border-style: inset;
background-color: #e3f48e;
padding: 2px 3px 0 5px; /*shift text 1px to the right and down*/
}

.cssbutton:active{
color: black;
}

</style>

w ramach body:

<p>
<a href="/http://www.infoprog.pl" class="rssbutton">RSS[/url]
<a href="/http://www.infoprog.pl" class="rssbutton">XML[/url]
</p>

<p><a href="/http://www.infoprog.pl/forum" class="cssbutton">Forum[/url]</p>

 

Projekt © 2009 - INFOPROG 67920 odwiedzin