[thelist] Achieve tabled images-style layout with CSS - HELP!

Adrian Simmons adrian at cubitum.co.uk
Mon Jan 7 16:43:27 CST 2002


>The dilemma (at least in IE6): Images maintain a small border no 
>matter what I try, breaking up the layout.
Don't have IE6, but ran into what I assume is the same problem in Netscape 6.

Basically all images are rendered as line level elements by default 
in these browsers, so automatically have padding. You need to have 
them rendered as block level elements.

Specify it in your style sheet:
img { display: block; }

HTH
-- 
Adrian

e-mail:
mailto:adrian at cubitum.co.uk

Web Site:
http://www.cubitum.co.uk

Netscape/AOL Instant Message ID:
adrianatcubitum






More information about the thelist mailing list