[css-d] small div height needed in IE6

2007-02-07 Thread Gary Williamson
Generator Microsoft Word 11 (filtered medium) I' m trying to add a Div with a small height of 5px but IE6 seems to automatically increase the Div height to something bigger. Any ideas? Thanks Gary __ css-discuss [EMAIL

Re: [css-d] small div height needed in IE6

2007-02-07 Thread Mike Purvis
Gary, IE expands all elements to contain one line of text's worth of whitespace. Fix it with a font-size:1px. If you need a zero-height div for clearing or something, you can do this: div.zeroheight { font-size: 1px; height: 3px; margin-top: -3px; } That pulls it up over top of the