Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] DIV height problem in IE


  • From: davidh126 at writeme.com (David Hucklesby)
  • Subject: [Javascript] DIV height problem in IE
  • Date: Mon Nov 20 19:56:09 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