Left sidebar and content overlapping in IE
lennart - July 2, 2009 - 09:25
| Project: | Airy Blue |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | geerlingguy |
| Status: | duplicate |
Description
Great theme! Unfortunately, in Internet Explorer the main content is not moved to the right of the left sidebar, so the text of the main content area and the text of the left sidebar area is superimposed and thus impossible to read. There is then an empty white space towards the right sidebar where the main content should have been.

#1
hai,
This is the css problem.kindly check the width and padding in the #main-content inner in the style.css
and the css of side-bar left.
Another solution is while uploading there may be some chance for missing of template.php of particular theme file.Kindly check that also.if so re-upload it
Thanks
Balaji
#2
I will take a glance at this tomorrow, and hopefully have a patch by then. I actually didn't test the left sidebar in IE at all (silly me), as the main site I'm using it on uses only a right sidebar.
Thanks for submitting the issue!
[Edit: Sorry I haven't gotten to this yet... I've been out of town this past week and couldn't get back to fixing the theme. I'll have it resolved as soon as I get back.]
#3
Thanks. Your effort is appreciated!
#4
Here's a patch which fixes the issue... has to do with a weird float bug in IE 6/7 (not present in 8), which can be resolved by simply adding the
display: inline;declaration on the #content element. You can either apply this patch immediately, or wait until I roll this and the other issue into a new version (6.x 1.1, coming soon :-)-Jeff Geerling
#5
Might help if I attach the patch :-)
#6
Applied to CVS, will release an updated version of the theme tonight (hopefully!).
#7
#8
Geerlingguy,
I'm having the same problem, and I'm using Google-Chrome. Left-sidebar Navigation overlapping main content. NICE Theme, but can't get the layout to work. I'm no software-guru either, so telling me to check this or insert that, is like me telling you to detect the mental-health issues of a criminal. Is it possible to tell a "newbie" how to fix this, in English ? -
Thank You !
Lee
#9
@ Paster Lee - What version of the theme are you using?
#10
Left side bar is floating on top of the main content on my site, too. Using firefox 3.5
#11
@dugh - could you please provide a screenshot (or even better, if the site's online, could you give a link?) I can't seem to replicate this problem on my local install...
Also, are you using version 1.1 or 1.0?
#12
Hey GeerlingGuy,
This issue is still occuring, whether the side bar is on the left or right - it overlaps the main content in Firefox and IE. (screenshot attached) Such a shame as this is a great theme.
Any closer to fixing this?
#13
I'm actually currently investigating this issue. I hope to have a patch in a day or two, and maybe a new release - it's one of those really annoying bugs :(
#14
Rolled into 6.x-1.2 - release coming within 24 hours!
#15
Automatically closed -- issue fixed for 2 weeks with no activity.
#16
geerlingguy -
I am having this issue too! Using Firefox 3.0.14 and IE 8. In both the left block is shifted right to cover the main content. I am using 6.x-1.0 Zen and 6.x-1.2 Airyblue on Drupal 6.13
#17
@ colinjones - You'll need to download Zen 2.x instead of 1.x; that should resolve the issue.
#18
hmmm didn't make any difference at all, I guess I must have done something wrong
#19
You'll also have to clear all your caches, or at least the theme registry...
#20
all the caching options in "performance" are turned off (I chose clear cache there anyway), and hit CTRL-F5 to clear the browser cache of that page too. And the option to rebuild the theme registery on every page is turned on, but I still get this issue.... I think I must have really screwed something up somehow, but I don't really know what I'm doing here! So I think I will just have to give up.
#21
I just realized - the problem is that the title goes down below the navigation area, and screws with the rest of the layout. One solution would be to use a shorter page title.
Another solution would be to change the page title font size so it all fits nicely in the top header area. You could add a rule like:
h1#site-name {
font-size: 80%;
}
Adjust this css rule as you see fit (smaller or larger).
#22
thanks so much for taking the time to look at this!! I tried shortening the title, rebuilding the theme cache (by leaving the option turned on for page refreshes), clearing the performance cache and CTRL-F5 refreshing on the browser, but still see this...
#23
Hmm... perhaps a module you have enabled is interfering with the theme CSS. Do you have a live link to the site, so I could check out your site myself?
Thanks!
#24
I have the same issue, I am gonna check my code in the validator.
#25
geerlingguy - sorry, it is a purely internal site that I cannot expose to the Internet... modules I have installed: Ajax (although none of the components are enabled currently), CCK, Date/Time, Node Import, Faceted search, Advanced Help, DHTML Menu (I know this one causes problems with Ajax), Views, VBO and Views OR
#26
geerlingguy, ya need access to mine? I can email you some account data as its only possible to see the template when selected in an account.
#27
@ Zarevac - that would be great! I will take a peek and see if I can get this issue resolved.
#28
Are you sure you're using Zen 2.x, or is that Zen 1.x? The reason I ask is that the zen stylesheet on your site is adding a default padding of 10 pixels to the body (something that's been fixed in Zen 6.x-2.x-dev), and also, the appropriate styles aren't being included on specific pages.
To download Zen 2.x, you need to go to the Zen project page, http://drupal.org/project/zen, and download the 6.x-2.x-dev snapshot (not the 6.x-1.0 version). Then delete the zen folder from your site, and copy the new zen project folder to sites/all/themes (or wherever your themes are stored).
#29
I'm pretty sure mine is 2.0 dev, see attached. Basically I deleted the contents of the old zen folder and moved the contents of the 2.0 folder into it, then refreshed the themes. Now it says 2.0
#30
Hey,
I got this error when updating to the new Zen 2.0 dev release. The left sidebar and content were overlapping and I got a error message.
Screenshot attached
#31
This is very puzzling to me - I'm going to try to install Zen 1.x, then remove it and install Zen 2.x, to see if I can replicate this issue. The problem is that the Zen 2.x body classes (such as class="sidebar-left" or "sidebar-second") are not being added at all.
#32
Hey,
I updated the Zen 2.x dev Feb09 release to Zen 2.x Oct09 release, when the problem occured. I didn't use Zen 1.x at all but even if I undo the changes, the content is still overlapping with the left sidebar. Not sure why :(.
#33
Just realized - the latest -dev release of Zen 2.x has changed the way the page.tpl.php file handles body classes - instead of:
<body class="<?php print $body_classes; ?>">you need:
<body class="<?php print $classes; ?>">in your Airy Blue page.tpl.php file. I will release a new version of Airy Blue to get this bug worked out.
[Edit: I also realized that tabs are no longer styled correctly. I'll need to rework a bunch of things in the .info file and the folder structure (including adding a tabs.css file to airyblue).]
#34
That fixed it with me, thnx!
#35
yep! that fixed it for me too :) thanks heaps!
#36
Any time ;-)
I have the fixes ready, but I need to get back to the states, or onto a network where I can access CVS. As soon as I can, I'll roll a new release.
#37
That fixed it for me as well. Thx. :)
#38
subscribe
#39
Oh a small btw :-p
In the admin section when you add blocks in both sidebars the problem occurs again on the lefthand side.
#40
Fixed in CVS - http://drupal.org/cvs?commit=282234
Please test and see if you have any trouble - the 6.x-1.3 release should appear by tomorrow sometime. I will be testing it with the latest Zen 2.x-dev release on two live sites, so hopefully I'll find if there are any glaring problems.
#41
I'm still seeing this behavior in IE7 (i'm using 64 bit, but I assume 32 has the issue as well) - using latest dev snap of Zen and 1.3 of Airy. The problem is not present in FF, IE6 or IE8
#42
Hmm... do you have a link where I could view your page? I can't replicate this issue locally, but I only have IETester - I'm wondering if IE 7's full version has some oddity I am missing.
P.S. I like the Tron reference!
#43
Sorry - I should have included that;
http://www.parkerchamber.org/drupal/
IE8's compatibility mode seems to also faithfully replicate this.
My apologies for not knowing CSS well enough to help out with this, but for what it's worth, Adaptive Themes "AT Admin" theme is a 3 column layout that seems to have strong similarities with Airy - the AT theme renders fine under FF, IE6, IE7 and IE8
#44
Sounds good - could you switch the theme back over to Airy Blue so I can sample the CSS on your site?
I'll try to get to this today (this afternoon if possible).
#45
I've switched the layout back and will leave it that way overnight. Here's something you may find interesting - 3 column layout without any CSS hacks for IE's broken box model and works with what looks like every browser out there.
http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-pixels.htm
Also look for any "Grail" theme in drupal - looks like 3 of them are sub themes of zen.
#46
Okay, I figured out the bug - it also hit me on another project I'm working on. You need to add the property "width: 100%" to the #main selector in the layout.css file.
So, #main (line 138) should read:
#main{
position: relative;
width: 100%;
}
Sorry about that - stupid IE 7 bugs! (It even works fine in IE 6 - how these things are possible boggles my mind).
I will try to incorporate this into an update tonight or tomorrow...
#47
I can confirm this resolves the issue in IE7 with no side effects in FF, IE6 and IE8.
Thanks!
--Scott
#48
Fixed on normal pages, however in the admin section it still goes into quirks.
#49
Could you give a screenshot?
#50
Its the same site, just login. I just upgraded both Zen and this Template to the latest versions and it appears its all back the way it was.
#51
Same as this bug (but a little outdated): #623598: left sidebar overlaps content if nothing in right sidebar
It's an issue with one of the latest changes to the Zen 2.x-dev release. I'm working on it, should have an update out a.s.a.p.