Closed (cannot reproduce)
Project:
Zen
Version:
6.x-2.x-dev
Component:
layout.css
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 10:53 UTC
Updated:
21 Aug 2013 at 08:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dboulet commentedI'm seeing the same problem. It seems that the problem was introduced when #445830: Rename clear-block CSS class to clearfix was committed.
This patch fixed the problem for me, taken from http://www.webtoolkit.info/css-clearfix.html.
Comment #2
n8tronI'm using Zen 6.x-2.0-beta1, but I see .clearfix in page.css with some documentation.
Comment #3
dboulet commented@_natron The problem is that IE7 doesn't recognize the :after pseudoclass, and so it ignores this rule.
Comment #4
n8tronah. right.
Comment #5
alphex commentedJust noting, that the patch in post #1 fixed the issue for me.
Comment #6
konfuzed commentedWhoa this patch saved me from pulling more hair out ;) thanks!
Comment #7
dboulet commentedLast patch had some tabbed indents that were bugging me.
Comment #8
Anonymous (not verified) commentedThis works is great, but surely should go in ie.css (seems to work fine there, too).
Comment #9
KrisBulman commentedthanks for the patch, agreed it should be in ie.css
Comment #10
KrisBulman commentedI notice that this duplicate: http://drupal.org/node/721264 is marked as fixed.. which should rely on this patch being included in dev. Has it been?
Comment #11
wattzy commentedThe best way to use a clearfix can be found at best clearfix ever. It doesn't use class names to fix the problem but an automatic solution that should be applied to all block level elements except for the p and footer elements.
Comment #12
dboulet commentedSimpler patch.
Comment #13
SweeneyTodd commentedThe patch in comment #7 works in both IE 6 and 7.
Tested on Zen 6.x-2.0 as well.
Comment #14
jix_ commentedJust FYI, D7 comes with the following clearfix (in system.css) which has fixes for IE6 and 7:
Thought you might want to consider this :)
Comment #15
kmontyI'd like to second the suggestion we use D7's method, as suggest in comment #14
Comment #16
aleclerc commentedsubscribing
Comment #17
MC_McMic commentedI have tried nearly all of these patches in the ie.css file, and none of them seem to be fixing the problem I'm having with my footer. I can't figure out what I'm doing wrong. Any suggestions?
Comment #18
dboulet commented@MC_McMic, try adding the code from #14 to your stylesheet. If that doesn't fix your problem, then it might not be caused by this issue, or perhaps the CSS is not loading correctly.
Comment #19
SweeneyTodd commented@MC_McMic - are you using css optimiser or the agregator or some other method of getting over the IE number of style sheet problem?
Are you making sure that the changes you make to the css are being copied through to the css that is being used? These modules compress the css into a single sheet in the site/mysite/files folder and you need to go to the theme page and save the Zen config and then clear the cache to make sure the new css is picked up.
Comment #20
MC_McMic commentedWow, sorry it took me so long to reply. Every time I came into the forums section of the Drupal.org site, it would log me out... very strange. I had to restart to fix it.
Anyway, I did get the clearfix to work in IE7, but only by applying the suggested changes to the pages.css file... not the ie.css file.
I was being careful to clear the cache, and I do not have any of the performance optimizations turned on yet.
Comment #21
zincdesign commentedCopying and pasting the code from #14 works perfectly.
Comment #22
rjl commentedDitto on the code from #14. It fixed the issue with IE7 for me.
Comment #23
dboulet commentedNo need to pollute our CSS files with hacks as in #14, we have ie-specific stylesheets.
Comment #24
barrapontoseems fine, but i don't have ie to test...
Comment #25
johnalbinThe current clearfix class works fine in IE.
Are you all experiencing the 31 stylesheet limitation of IE? Try turning on CSS aggregation and see if you still have issues with Zen's clearfix class.
@dboulet The lines you are replacing in the ie.css and ie6.css already fix the clearfix class for IE6 and IE7. That's what "zoom: 1" does. Its an IE-only rule that turns on the element's haslayout property. http://www.satzansatz.de/cssd/onhavinglayout.html
Comment #26
johnalbin