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: frank.arensmeier at nikehydraulics.se (Frank Arensmeier)
  • Subject: [Javascript] DIV height problem in IE
  • Date: Mon Nov 20 05:08:46 2006

... and (just be be sure) line-height:1px;

/frank
20 nov 2006 kl. 05.48 skrev Roger Roelofs:

> vijay,
>
> On Nov 19, 2006, at 10:47 PM, 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...
>
>> div#vscl{
>>         position:absolute;
>>         left:673px;
>>         top:17px;
>>         width:20px;
>>         height:1px;
>>         background-Color:red;
>>         }
>>         </style>
>
> This is actually a css question.  You can get good answers from the  
> css-discuss wiki at
> http://css-discuss.incutio.com/
>
> The short answer is that ie is forcing the div to be tall enough to  
> contain one line of text at the default font-size.  One solution is  
> set font-size: 1px;
>
> -- 
> Roger Roelofs
> Datacomp Appraisal Services
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript

-------------- next part --------------
En HTML-bilaga skiljdes ut...
URL: https://lists.LaTech.edu/pipermail/javascript/attachments/20061120/a0f11886/attachment.html