Ukázka
html
- Kód: Vybrat vše
<div style="font: bold 16px/1.0 Times New Roman; display: block; height: 30px; width: 90px; background-color: rgb
(0,180,0); text-align: center; color: white; background: -webkit-linear-gradient(180deg, rgb(0,255,0) 40%, rgb
(0,180,0) 60%); background: -moz-linear-gradient(180deg, rgb(0,255,0) 40%, rgb(0,180,0) 60%); background: -ms-
linear-gradient(180deg, rgb(0,255,0) 40%, rgb(0,180,0) 60%); background: -o-linear-gradient(180deg, rgb(0,255,0)
40%, rgb(0,180,0) 60%); background: linear-gradient(180deg, rgb(0,255,0) 40%, rgb(0,180,0) 60%); -webkit-border-
radius: 10px; -moz-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.htc); border: 1px solid rgb
(0,100,0)"id="download-gradient"><span style="position: relative; top: 7px"id="test">Download2</span></div>
css
- Kód: Vybrat vše
#download-gradient:hover
{
position: relative; bottom: -20px;
font: bold 16px/1.0 Times New Roman; display: block; height: 30px; width: 90px; background-color: rgb(0,180,0);
text-align: center; color: black; background: -webkit-linear-gradient(180deg, rgb(0,180,0) 40%, rgb(0,255,0) 60%);
background: -moz-linear-gradient(180deg, rgb(0,180,0) 40%, rgb(0,255,0) 60%); background: -ms-linear-gradient
(180deg, rgb(0,180,0) 40%, rgb(0,255,0) 60%); background: -o-linear-gradient(180deg, rgb(0,180,0) 40%, rgb
(0,255,0) 60%); background: linear-gradient(180deg, rgb(0,180,0) 40%, rgb(0,255,0) 60%); -webkit-border- radius:
10px; -moz-border-radius: 10px; border-radius: 10px; behavior: url(/PIE.htc); border: 1px solid rgb(0,100,0);
}
#test:hover
{
color: black;
}