/    Sign up×
Community /Pin to ProfileBookmark

Expanding Divs in IE6 and below

Well I guess this is probably a common problem but I am stumped on it. Probably because I am a complete numpty when it comes to web development and I don’t know what I am doing. Basically [URL=”http://www.clear-prop.co.uk”]the web site [/URL]works fine in IE 7 but in IE 6 the right hand column overflows the container. I cannot get the container to expand vertically. Any suggestions please? This works fine in IE 7.

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@CentauriMar 21.2008 — This is due to IE6 not recognising the min-height property - you [I]could[/I] just feed IE6 a height for #content (which it will treat as min-height), but setting heights here is just a bandaid solution for the main problem of the absolute positioned #third-column div. If you increase text size in FF, then the right column overlaps also due to its absolute positioning. You would be better of setting a width for #content and floating both it and #third-column left and removing the absolute positioning from #third-column and the min-height from #content.
Copy linkTweet thisAlerts:
@AnguslhauthorMar 22.2008 — Hey Centauri, Thanks for your help. I decided to go for the proper fix as opposed to the 'bandaid'. I can see that the larger text issue, that I wasn't even aware of, is now fixed following your advice. However in IE6 it keeps pushing the third-column underneath the other content. I haven't put it up live as this is a working site but the CSS we were looking at is pasted below. I have tried changing the widths of the elements but it still refuses to float left or right next to the content. It keeps going down below. By the way the complete width of the page is 800px.

[code=html]#outer div#container div#content {
background:#FFFFFF none repeat scroll 0%;
border-top:0px solid #FFFFFF;
height:auto;
margin:0px;
width:596px;
overflow:visible;
font-family:Geneva,Arial,Helvetica,san-serif;
font-size:small;
float:left;
}
div#third-column {
background-color:#FFFFFF;
border-left:0px dotted #B4C4DD;
bottom:0pt;
float:right;
height:auto;
margin:0px 0px 25px 0px;
min-height:400px;
right:0pt;
text-align:center;
top:0px;
width:198px;
}[/code]


Thanks for your help so far Centauri. I really am a bit of a newbie when it comes to the finer details :o
Copy linkTweet thisAlerts:
@CentauriMar 22.2008 — I am unable to test styles in IE6 on the live site, and I think it may be due to the <body> tag being in the wrong place - it is currently after <html>, but it should follow </head>. If you can change that on the live site, then I can test further.
Copy linkTweet thisAlerts:
@AnguslhauthorMar 24.2008 — Thanks for pointing that one out to me Centauri. I have fixed that now so hopefully you may be able to help me alittle further. I really appreciate your help so far....Thanks!
Copy linkTweet thisAlerts:
@CentauriMar 25.2008 — #textbox3 is too wide - set width of 590px, plus borders of 2px each side, plus left margin of 5px, plus right margin of 20px = 619px overall. IE will not allow this to overhang #content, pushing it too wide for #third-column to fit. You need to reduce the [B]total[/B] width occupied by #textbox3 to less than that set on #content.
Copy linkTweet thisAlerts:
@AnguslhauthorMar 26.2008 — Thanks for all your help Centauri. I will have a look at that. I am just trying to set up a test environment on my vista machine. T'was easy when I was running XP! You have been a big help and it is really appreciated!
×

Success!

Help @Anguslh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...