[thelist] CSS Question

misterhaan misterhaan at track7.org
Sat Feb 2 15:56:03 CST 2008

Donald Pasewark wrote:
> The images are linked and I want to have the border change color on  
> the rollover. Would the code to do that look like this?
> div.text img a:hover {
> 	float: left;
> 	margin-right: 14px;
> 	border: 1px solid #f92727;
> }

that's a little backward -- try :

div.text a:hover img

instead.  also you don't need to specify the float and margin-right 
again since they're the same.

More information about the thelist mailing list