Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-23-2007, 11:10 PM   PM User | #1
mhunt
Regular Coder

 
Join Date: Mar 2005
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
mhunt is an unknown quantity at this point
float problem?

http://mh-interactive.com

looks fine in firefox but then in IE the middle div just goes bonkers and is at the bottom of the page, any idea why?
mhunt is offline   Reply With Quote
Old 01-23-2007, 11:52 PM   PM User | #2
koyama
Senior Coder

 
koyama's Avatar
 
Join Date: Dec 2006
Location: Copenhagen, Denmark
Posts: 1,246
Thanks: 1
Thanked 5 Times in 5 Posts
koyama will become famous soon enough
You should be floating all three columns. Currently you are left floating your left column, right floating your right column while not floating your middle column. Instead you should be left floating all your columns: (Then again, in your document you will want to switch the order of your blocks.)

Also watch out setting heights: This is usually not necessary and main ruin layout when the user increases text size in his browser.
Code:
#navigation {
	float: left;
	width: 150px;
        ...
}
.mainBody {
	margin: 0 300px 0 150px; /* out */
        margin: 0;
	padding: 5px 10px 5px 10px;
	width: 300px;
	height: 400px;
        float: left;
        ...
}
.recentArticles {
	float: right; /* out */
        float: left;
	width: 225px;
	height: 385px;
}
koyama is offline   Reply With Quote
Old 01-24-2007, 02:07 AM   PM User | #3
mhunt
Regular Coder

 
Join Date: Mar 2005
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
mhunt is an unknown quantity at this point
thank you
mhunt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:59 PM.


Advertisement
Log in to turn off these ads.