Click to See Complete Forum and Search --> : div's height different in IE and FX


byte_eater
02-10-2007, 06:28 AM
Hey guys!

I have a problem with my div height. In explorer the height is much bigger then in Firefox... this is the #content_preturi.

Although the #content_preturi and box_preturi have the same height, explorer make the #content_preturi like twice bigger then #box_preturi...

for a complete code source pls visit: http://www.jantuan.com/modus/preturi.html

Here is a part of the CSS:


#content_preturi {
position:absolute;
width: 443px;
height: 4130px;
margin-left: 173px;
background: #FFFFFF url(../img/building.jpg) no-repeat top left;
z-index:2;
border: solid 1px red;}
#box_preturi {
position: relative;
width: 632px;
height: 4130px;
margin: 0 auto;
text-align: left;
background: url(../img/bg_base_compact.gif) no-repeat;
z-index:2;
border: solid 1px blue;}

#repeat {
position:absolute;
margin-top:0;
margin-top:540px;
width: 611px;
height: 5315px;
background: url(../img/repeat_bg.gif);
padding-left:20px;
padding-top: 10px;
z-index:1;}


I also have a table inside one div that is inside #content_preturi...can it influence some how that the height of the div differ so much?

Pls if somebody has some suggestions, I will appreciate the help!

ToonMariner
02-10-2007, 11:08 AM
The answer lies here....
http://css-discuss.incutio.com/?page=BoxModelHack

byte_eater
02-10-2007, 02:27 PM
The answer lies here....
http://css-discuss.incutio.com/?page=BoxModelHack

It's not working :(

It's because of the table, cause on other pages the same box in box divs, and everything perfect...and two pages that contain tables, both have problems with the height!

Anyone, other suggestions???