Three-column layout breaks in IE 6
Posted: 17 June 2008 08:39 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  61
Joined  02-05-2008

Hi all -

We have a standard three-column layout. We’ve tested it in numerous browsers on both Windows and Mac, and it looks great. It also XHTML and CSS validates.

The only browser that is misbehaving is IE 6. The majority of the pages look fine, but two in particular break. What breaks is the right-hand column, which displays further down on the page and on top of the second column’s content:

http://www.urbanturf.com/about/
http://www.urbanturf.com/articles/category/neighborhoods/

I think this is the so-called Having Layout bug that my CSS book discusses, but I can’t be sure because I don’t have enough experience. I am relatively new to CSS and am working with code that was provided to us by a third-party designer.

I do know that our site uses the 960 grid system stylesheet (http://960.gs/)

Here is the XHTML code for the column that is causing problems:

<div id="tertiary" class="grid_3">
    <
div id="marketplace">
        <
h4 class="sifr">Marketplace</h4>
        <
p>Homes, condos, and services in the DC area</p>
        <
a href="..."><img src="..." alt="Marketplace" /></a>
        <
span class="more">&raquo; <a href="...">More</a></span>
    </
div>
    <
div id="ad-tert">
        <!--
BEGIN - the 160x600 wide skyscraper -->
        (
skyscraper JavaScript code)
        <!--
END - the 160x600 wide skyscraper -->
    </
div>
</
div>

Note that the tertiary ID is not given any styling in the stylesheet; it’s actually never even mentioned. I believe our designer just put it there for reference. The “grid_3” class comes from the aforementioned 960.css stylesheet.

I tried adding both “display: inline-block;” and “height: 1%;” to the grid_3 class styling in 960.css, but it had no effect, so I took them back out. (Those are workarounds to the Having Layout bug suggested by my CSS book.)

Can anyone help?

Thanks smile

Profile
 
 
Posted: 18 June 2008 03:01 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  698
Joined  02-15-2008

Any chance you can post a link to the page in question?

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 18 June 2008 08:28 AM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1294
Joined  09-16-2004

In IE6, this seems to solve it (add this to an IE6 only stylesheet):

#tertiary {float: right;margin: 0;}

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 18 June 2008 08:47 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  61
Joined  02-05-2008

Andy -

The URLs are:
http://www.urbanturf.com/about/
http://www.urbanturf.com/articles/category/neighborhoods/

e-man - thanks! I’ll try that and let you know.

Profile
 
 
Posted: 18 June 2008 08:48 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  698
Joined  02-15-2008
Andy Harris - 18 June 2008 03:01 AM

Any chance you can post a link to the page in question?

Sorry, you have posted a link to the page in question haven’t you. One of those days for me smile

e-mans suggestions works just fine. I notice you also seem to have the left column and center column pressed up real close. I fixed that by dropping the main content down 20px and adding that as padding-left, but not sure how that stacks up against the CSS grid rules.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60711 Total Logged-in Users: 23
Total Topics: 73164 Total Anonymous Users: 8
Total Replies: 394604 Total Guests: 537
Total Posts: 467768    
Members ( View Memberlist )