[Javascript] DIV height problem in IE
David Hucklesby
davidh126 at writeme.com
Mon Nov 20 19:48:50 CST 2006
On Mon, 20 Nov 2006 09:17:52 +0530, vijaykumar bavareddy wrote:
> Hi, trying to place DIV with height less than 15 using below code..
> its works fine in firefox but not in IE.. in IE its showing height
> around 15px by default.. please help in this regard...
Hi Vijaykumar,
The height you see is the blank text between the open and close tags.
Unfortunately IE still "sees" text when you write the two tags next to
each other. Adding an HTML comment between works though:
<div id="vscl"><!-- --></div>
Attempting to fake it with font-size will only break for your visitors
that use IE accessibility options.
Cordially,
David
--
www.hucklesby.com
More information about the Javascript
mailing list