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 11-01-2009, 09:23 PM   PM User | #1
yannibmbr
New Coder

 
Join Date: Dec 2006
Posts: 56
Thanks: 12
Thanked 0 Times in 0 Posts
yannibmbr is an unknown quantity at this point
IE6 Layout Issue

The problem:
So I'm building a new site and I have am having an issue with ie6. http://dev.joshandmichelle.net
In Ie7 and ie8 it shows up right, but in ie6, there's a gap at the bottom of the layout. It's fine in firefox, safari and chrome.

Anyway, I'm just curious if anyone knows how I can work through the issue, I'm scratching my head on it and can't seem to get it working.

Many thanks.
yannibmbr is offline   Reply With Quote
Old 11-01-2009, 11:21 PM   PM User | #2
Paweł
New to the CF scene

 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Paweł is an unknown quantity at this point
My computer with IE6 installed is switched off so I can't preview Your site. But I see there's no conditional IE6 statement. Try making alternative css file with some fixes. I guess You'd need to relatively position broken div, but, as I said, I can't see what's wrong
Paweł is offline   Reply With Quote
Old 11-02-2009, 01:46 AM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello yannibmbr,
It looks like you have not cleared your floats...

Make your CSS look like this:
Code:
#content {
	width: 960px;
	padding-top: 65px;
overflow: auto;
}
Here is a site that describes how that works.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 11-02-2009, 09:18 AM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
I think this might be an issue with the empty #content-btm div. IE6 doesn't like empty divs, it seems. Try adding a comment:

Code:
<div id="content-btm"><!--for IE6 --></div>
SB65 is offline   Reply With Quote
Old 11-02-2009, 10:28 AM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Code:
#content #content-btm {
	margin: 0px;
	padding: 0px;
	/*width: 960px;*/
	background-image: url(content-btm-bg.png);
	background-repeat: no-repeat;
	background-position: left bottom;
	height: 80px;
	/*float: left;*/
	clear: left;
}
should do it for you.

PS: Don't use float, if you don't need to actually float it.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 11-03-2009, 12:39 AM   PM User | #6
yannibmbr
New Coder

 
Join Date: Dec 2006
Posts: 56
Thanks: 12
Thanked 0 Times in 0 Posts
yannibmbr is an unknown quantity at this point
Thanks everyone. I will give your suggestions a try once I get home and let you know what happens... =)
yannibmbr 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 02:45 AM.


Advertisement
Log in to turn off these ads.