Style does not load in IE.
see attached image

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

knaffles’s picture

Hmm...me too. I'm stumped. I've enabled the html5shiv, but for whatever reason, IE 8 and below does not respect any layout styles. Any hints are welcome.

alexweber’s picture

Assigned: Unassigned » alexweber

I'm on it, expect a fix int the next few days!

basicmagic.net’s picture

FileSize
168.01 KB
113.49 KB

i love this theme- your work is fantastic, thanks for sharing it.

but i too have been experiencing the following issue:
in a simple, two column layout- with content left, and (second) sidebar right...

IE 7 & 8 is dropping the display of the right hand sidebar below the content, vertically-
instead of aligning it flush right, like it does on all other browsers, including IE 9.

looking forward to any insight / fixes on this... i have tested it on IE 7 & 8, past few days...
trying everything i can to make it work, but no go so far.

responsive css and media queries are working fine for IE 7 & 8 as far as i can tell-
its just the display of the sidebar that appears (to me) to be bonked.

i have attached a few screencaps... showing the incorrect display.

thanks again-
vincent, in buffalo

alexweber’s picture

@basemagic_net, thank you very much for the compliments and detailed bug report!

I will try my best to look into this today or tomorrow and release a new version with IE working 100% :)

basicmagic.net’s picture

thanks so much-
your theme is hands down the best rock solid html5 responsive monster out there.

i have tested it across all browsers and resolutions, especially mobile and tablets-
as soon as you can get the sidebar to not drop on IE 7 and 8, its golden.

i have like 5 clients that are waiting for their killer new theme to be done-
because i saw how good your work was, and want to adopt it for their sites.

looking forward to the fix!

also, i did simply allow for the second-sidebar to drop below, for the resolutions less than 768-
which is what i want in that case, and it works fine.

only issue is getting the sidebar to line up on the right hand side in IE 7 & 8.
please let me know if you want to see any more screencaps or sample of the slight modifications to the theme, whatever...
can't wait til you have this clocked- its so sweet.

big thanks from buffalo,
vincent

knaffles’s picture

Pretty sure it's because both respond.js and css3-media-queries.js require that the min/max widths be specified in the css stylesheet not in the link or @import tag.

+1 for loving this theme. This is going to be my starting point for any new themes I develop. Thanks!!!

alexweber’s picture

@knaffles are you sure about the max/min widths be specified in the stylesheet? The respond.js demo page has a media query on a link tag and it seems to work ok :S

alexweber’s picture

Status: Active » Fixed

Ok, so after banging my head against the wall for a but I figured this out, the media queries ARE actually being loaded, except last one (min-width 1382px).

Not sure why, but adding max-width: 9999px to it made it work.

I figure its harmless so it has been committed here.

This alone warrants a new release so I'm pushing out a new RC in a couple mins, thanks all for the detailed bug reports and please let me know if this doesn't fix it!

alexweber’s picture

+ 7.x-2.0 release blocker tag

basicmagic.net’s picture

thanks again for the improvements and fixes...
unfortunately i am still experiencing the same issue?

i just enabled and did a totally clean install of the latest 7.x-2.0 you uploaded to the repository-
but IE 7 and 8 are still dropping the sidebar, below the content...

here is an almost totally unchanged live demo of your newest version-
http://basicmagic.net/greengraffiti/

i wonder what is happening...? i am testing it in IE 7 and 8-
and the right hand sidebar still is dropping...

thanks again-
vincent

knaffles’s picture

You're right, @alexweber, the media queries in the link tag aren't a problem. However, stylesheets referenced via @import are not parsed by respond.js - confirmed that in the documentation. Ultimately, I discovered two issues:

1) if you have not yet enabled compressed, aggregated CSS files (in Configuration -> Performance), then all your stylesheets are referenced via @import. When you aggregate/compress, Drupal uses a link tag to reference the stylesheets. I'm not sure why there are two different approaches, but regardless, respond.js is not going to parse the uncompressed @imported stylesheets. So only until you aggregate/compress, does respond.js start parsing.

2) In the .info generated for a Zentropy subtheme, it says for media queries to work in IE 6-8, you need to do one of three things. One of them is:

* Enable the Modernizr additional Zentropy component and build a version that includes Respond.js

I may be wrong, but I assumed this meant checking off the "Media queries" option in the "Extra" block: http://modernizr.com/download/

So I was including modernizr with the media queries option and without a separate respond.js or css3-mediaqueries.js script. But that didn't seem to enable the media queries in IE. Once I added respond.js separately, things started working. So either I did something wrong with my modernizr download, or maybe the comments in the .info file are not accurate.

Anyway, between those two, I *think* everything is working as expected now.

alexweber’s picture

@knaffles oops, I should update the documentation in a couple places! :)

Thanks!

alexweber’s picture

Status: Fixed » Closed (fixed)
hoZt’s picture

Alex, can you clarify where this was fixed? I have tested with both rc5 and dev the version and followed the directions from #11 above, but still in IE 7 and Camino 2.0 the stylesheets do not load. The only way to get the layout to work in these browsers is to disable responsive styles in the html5 settings.

alexweber’s picture

Status: Closed (fixed) » Active

I'll let you know what commit it was I can't remember off the top of my head

andyhu’s picture

Also need to know how I can fix it, thanks!

dmitriy.panyuta’s picture

Version: 7.x-2.0-rc3 » 7.x-2.x-dev

Hallo, please check last dev version. I think now all work well. (but need to test)
i move media query from attribute to css file and change referenced to css file from @import to link tag.

I think the main problem is this:
respond.js not understand media query like (only screen and (min-width : 480px) and (max-width: 768px)). If you wont to use media query with min-width and max-width you need to choose a css3-mediaqueries-js.

alexweber’s picture

Status: Active » Needs review

Thanks Dmitriy!

creaoy’s picture

Status: Needs review » Fixed
creaoy’s picture

Status: Fixed » Closed (fixed)