[thelist] CSS Question

Donald Pasewark don at pasewark.com
Sat Feb 2 15:43:30 CST 2008


Hi All,

I have a quick CSS question:

I have a div:

div.text {
	float: left;
	padding: 20px 30px 0 40px;
}


I have a img in that div:

div.text img {
	float: left;
	margin-right: 14px;
	border: 1px solid #98959b;
}

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;
}


Thanks!
Don




More information about the thelist mailing list