I am using a Zen subtheme and when expanding a fieldset (for example "publishing options" when editing a node) it will overlap whatever is below it. This only happens in Internet Explorer, not Firefox or Opera. It does not happen using the Garland theme. I've verified and tried the following:
zen.css, mytheme.css and ie.css are showing up in Head on the page source in that order.
Tried disabling mytheme and using only zen with same effect
css files are referenced in mytheme.info
I have the rebuild theme registry on every page turned on
Any help or information would be appreciated.
Thanks in advance.
Comments
Comment #1
radman16 commentedAfter much searching and consternation I think I have finally figured out the problem. This issue is related to the IE background-color bug. I had set the background color in the content-area div which causes IE to do strange things with the layout. The fix is very simple. Just put the following rule in ie.css in your sub-theme and make sure it is in your mytheme.info file:
/** Background-color bug fix for IE7 **/
.node
{
min-width: 0;
}
A good discussion on this and other IE bugs with solutions can be found here:
http://www.satzansatz.de/cssd/onhavinglayout.html
Comment #2
3cwebdev commentedThanks for the tip. The min-width fix did not solve the problem for me but it led me in the right direction.
The fix to my ie6/ie7 collapsible fieldset overlaping was:
in ie.css.
Comment #3
StevenWill commentedThe min-width or background:none for node did not work for me, I used position: static on the class .collapsible.
/* Prevent fieldsets from shifting when changing collapsed state. */
html.js fieldset.collapsible {
position: static;
top: -1em;
}
html.js fieldset.collapsed {
top: 0;
margin-bottom: 1em;
}
place the above css in your ie7 style sheet.
Hope this helps some one else :-)
Comment #4
azraindog commentedApologies if this is outside the scope of Zen discussion. The above fix by sky_rivers also addresses this issue in any themes derived from Framework. Thank you!
Comment #5
crutch commentedo my. This finally fixed my issue. I'm jumping around like that old man from Charlie and the Chocolate Factory when they finally get the golden ticket. Thanks!!!
Comment #6
ducdebreme commentedIt worked for me!
Your solution solved me on IE6 .
:-) Thanks
Stefan
Comment #7
sunshinee commentedI can verify that IE7 does not display collapsible fieldsets properly, but they do not appear to overlap. The problem I have found is that they work fine unless there is a table in the fieldset. BTW, none of the fixes above worked for me, even after clearing caches, etc. I'll post back if I do get something working. (using the newly released Zen 6.x - 1.0)
Comment #8
ookello commentedi'm having a similar problem with the aboutpeople theme. none of the above fixes have worked so far. will post again if some magic happens...
Comment #9
jameswoods commentedI applied sky_rivers' #3 css code to my ie7 stylesheet and it fixed the fieldset/overlapping described in the original post. I'm using a 100% custom theme, not based on Zen or anything.
Thanks sky_river, you rock!!
-James
Comment #10
lindsayo commentedI don't get the overlapping fieldsets problem, instead the opened fieldsets extend the content of the div past the bottom of the div.
Comment #11
aaronelborg commentedthanks, sky_rivers.
problem solved.
Comment #12
keesje commentedMy problem was:
Removing "overflow: hidden;" solved this problem in my case.
Comment #13
gmh04 commentedThe solution from sky_rivers worked for me on IE 7.
thanks!
Comment #14
geerlingguy commentedI can confirm that the fix in #3 worked for me as well.
Comment #15
protoplasm commentedThanks sky_rivers. That fix in #3 worked for me as well! Only wish I had found this post sooner.
Comment #16
FreeFox commentedThe #3 fix is the one for me !!!
Big hug sky_rivers, you probably save me a couple of hours searching :)
Comment #17
Anonymous (not verified) commentedI had the same problem as rjoy, IE won't work properly if there is a table in the collapsed fieldset.
I solved adding a
<p> and </p>tags around the table.Now it works! :)
Comment #18
SchwebDesign commentedfix from sky_rivers helped me too (using acquia_prosper modified theme) thanks everyone for your contributions!
Comment #19
johnalbin