Designing my new website for the past few weeks. I probably have over 200 hours into this thing and it was coming together nicely when I decided to check how it looks in ie6/7/8. It's a total mess. I am surprised to find there is no conditional css like in Zen to deal with this. Surprised and disappointed there does not appear to have been any thought put into this.

Ie is a trainwreck that web developers have always had to grudgingly deal with and it's amazing that the developers of Omega don't seem to know or care about this. Now I have hit a show stopper. This is a disaster for me. My stats show that a significant number of my visitors still use IE6/7/8 so I cannot just ignore this problem.

Comments

fubhy’s picture

Hmm I don't see where the problem is? Just add your conditional stylesheets?

mustardman’s picture

You mean by hacking up the Omega PHP which they specifically don't recommend doing and kind of defeats the purpose of Omega in the first place which is supposed to help avoid all that. At least for a feature like this which is standard in other framework environments. Or just using Zen which already has this feature built in.

And according to this post you cannot use conditional stylesheets module with Omega. You have to fart around with preprocessor php code which...again, kind of defeats the purpose of using Omega in the first place which is to avoid having to do that for standard things.
http://drupal.org/node/1263750

fubhy’s picture

Status: Fixed » Active
function hook_preprocess_page(&$variables) {
  drupal_add_css('myie8.css', array('browsers' => array('IE' => 'gte IE 8', '!IE' => FALSE)), 'group' => 5000);
}

Done.

fubhy’s picture

Status: Active » Fixed
fubhy’s picture

Status: Active » Fixed

Also, what do you mean by "others have this built-in"? How can a theme know how you want to style IE8? You just have to add a stylesheet with browser conditionals and put your IE styles into it... What else do you need?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.