Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - div height in IE

 
Thread Tools Search this Thread
Old 10-12-2004, 09:16 AM   #1
Default div height in IE


Hi,
I have a structure like this in the page:

<div style="position:relative;width:164px;height:48px;" >
<div
style="position:relative;left:14px;top:13px;width: 175px;height:33px;">
<img src="..">
</div>
<div
style="position:relative;left:0px;top:-33px;width:164px;height:48px;">
</div>
</div>

Now, when I load this in NS-compatible browser, everything is fine and
the outer div's height is 48px. However, when I load this in IE(6), the
second inner div causes the outer div to increase height (I suspect by
48px). The whole thing is in a table cell, thus causing it to grow
vertically and adding blank space (actually, I have a third div in there
and it's height is 120px, so the change is quite noticable). Anyone
knows how to fix this thing?

PS: I try to follow closely w3c and I've noticed that whatever I try in
NS-compatible browsers works just fine, as it is supposed to work
according to w3c, and IE often screws things up.. The last addition to
my "know-why"'s is that when linking external javascripts, apparently I
*need* to separately close the tag (i.e., <script... src=...></script>),
whereas <script... src=.../> should work just fine. Spent about 20
minutes trying to figure out what's wrong with the page - no errors or
anything, just a blank page.

Thanks,
Lüph


=?ISO-8859-1?Q?L=FCpher_Cypher?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump