[thelist] TROUBLES WITH CSS ON IMAGE

Maximillian Schwanekamp lists at neptunewebworks.com
Wed Feb 2 14:26:31 CST 2005


Joan Olivé M. wrote:
> I've spent hours trying to understund why the TOP BORDOR dont wont to appear on the images in the small proof:
> http://www.seleccar.com/prova-05-02-02/

You should start by declaring a proper DOCTYPE, and then validate your 
HTML and CSS.  As it stands, you have no DOCTYPE, so your CSS is going 
to be much less predictable.  cf:
http://css-discuss.incutio.com/?page=RenderingMode

That said, try replacing those img-m rules with the following.  You'll 
get some other issues, but once you fix the DOCTYPE and validate, it'll 
be simpler to fix those.

.img-m {
	display: block;
	border: 5px solid #000080;
}
.img-m:visited {
	border-color: gray;
}
.img-m:hover {
	border-color: red;
}


-- 
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/



More information about the thelist mailing list