...

View Full Version : li border change on hover?



nikko50
01-19-2013, 07:57 PM
I have a horizontal list with a border on each list. how can I chane the border color when someone hovers on a list?. i tried the below but it does not work.



ul li {

display:block;
width:180px;
height:200px;
margin:5px;
padding:5px;
text-align:center;
background-position:0 0;
border:5px solid #E3E3E3;
}


ul li{

float:left;
}

ul li hover { border:5px solid red;}

Frankie
01-19-2013, 09:42 PM
ul li hover { border:5px solid red;}
should be:

ul li:hover { border:5px solid red;}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum