Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Conditional Sylesheet, I’ve messed up somewhere, can’t find it. Re: Conditional Sylesheet, I’ve messed up somewhere, can’t find it.

#66732
gno
Member

I think the issue is with the href of your conditional style sheet.

You are pointing it at a “relative position” – “ie.css”.

If you are at http://www.example.com/about/ it will request the style sheet http://www.example.com/about/ie.css. If you are at http://www.example.com/blog/blogpostid/ it will request http://www.example.com/blog/blogpostid/ie.css

This is of course only the case if you use mod_rewrite on apache or similar customization of the URL. Which most wordpress-users seems to do.

If you change the href to /ie.css it will always look for the stylesheet in the root of your domain (www.example.com/ie.css) no matter what.