Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 12-13-2006, 10:30 AM IE box behavior
Junior Talker

Posts: 4
Name: Pedro Pais
Trades: 0
How can I force IE to keep the div in its place (i.e. don't break it if there isn't enough room).
I've tried using overflow:hidden, but it doesn't seem to work.

BTW, the page is www.pedropais.com and the problem is with the right sidebar. If you reduce the window you'll notice that the sidebar goes to the bottom of the page. That doesn't happen with FF.

How can I solve this issue?

Thanks.
pedropais is offline
Reply With Quote
View Public Profile Visit pedropais's homepage!
 
 
Register now for full access!
Old 12-13-2006, 02:59 PM Re: IE box behavior
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
IE (6and below) has a seriously broken box model. You MUST be careful when defining widths with margins and padding. There are some layout methods that will stop IE from dropping your content.

http://www.communitymx.com/content/a...989953B6F20B41

You are also running into the doubled-float margin bug which is triggered when you have a box floated left or right, and then add padding or margin in the same direction as the float: ie. float: left and margin-left and the same for right.
http://www.positioniseverything.net/...ed-margin.html

You can see the whoooolle list of IE bugs here:
http://www.positioniseverything.net/explorer.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-13-2006, 07:45 PM Re: IE box behavior
Junior Talker

Posts: 4
Name: Pedro Pais
Trades: 0
Thanks for your answer. I didn't manage to make it not to drop, but I'll keep on trying...
pedropais is offline
Reply With Quote
View Public Profile Visit pedropais's homepage!
 
Old 12-14-2006, 03:47 PM Re: IE box behavior
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I glanced at your code briefly. Two things I see:
#content is set to 500px width + 4% padding (2+2)
#sidebar is set to 380px width.
At the very minimum, you've got a width for the 2 of them of 880px (w/o padding). If you shrink your browser window to less than that, there's no place for that 380px column to go, and that's not even counting the extra 2% you've added to each side of content.

You'll have to make both columns truly liquid, or use another solution:
http://www.positioniseverything.net/.../onetruelayout
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-15-2006, 12:10 PM Re: IE box behavior
Junior Talker

Posts: 4
Name: Pedro Pais
Trades: 0
You're absolutely right. But even though the site might not fit a 800x600 resolution screen I wanted it not to drop the right sidebar. It should just show an horizontal scrollbar and nothing else.
Is that so difficult to accomplish?
pedropais is offline
Reply With Quote
View Public Profile Visit pedropais's homepage!
 
Old 12-15-2006, 07:15 PM Re: IE box behavior
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Read here for a solution:
http://www.sitepoint.com/forums/showpost.php?p=1374925&postcount=15
You just have to put the hack in a separate CSS file for Ie fixes and use conditional comments in your html to call the 'iefixes' css file, otherwise it will blow up in your face in IE 7.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 12-15-2006 at 07:18 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-16-2006, 01:09 AM Re: IE box behavior
Junior Talker

Posts: 4
Name: Pedro Pais
Trades: 0
Using the information you gave me and the info at http://www.brunildo.org/test/IE_fdi11.html I managed to solve my problem.

Thank you very much for being so helpful.
pedropais is offline
Reply With Quote
View Public Profile Visit pedropais's homepage!
 
Reply     « Reply to IE box behavior
 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18914 seconds with 12 queries