Topic: ie specific CSS sheet
Is it possible to do this? A few elements on my site need their pixels, margins etc. adjusted for internet explorer. How can I create an internet explorer stylesheet?
Arras WordPress Theme Community Forums
Community support for Arras and other WordPress projects
You are not logged in. Please login or register.
Arras 1.5.2-RC2 Now Available: Download Here
Forum Rules: Please ensure that you have clearly read and understood the forum rules before posting.
User Confirmations / Password Reminders: Please check your spam folder before emailing for help if you have not received the confirmation or password reset emails.
Is it possible to do this? A few elements on my site need their pixels, margins etc. adjusted for internet explorer. How can I create an internet explorer stylesheet?
The basic technique is to create a new stylesheet with your IE styles then put something like this into <head>:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie-only.css" />
<![endif]-->You can even pick out individual IE versions if need be.
Are you using an arras child theme? If so you could add this in your child theme's functions.php with something like this (note I haven't tested this fully yet):
function ie_styles()
{
echo '<link rel="stylesheet" type="text/css" href="ie-only.css" />';
}
add_action('arras_head', 'ie_styles');You'd probably need to call a wordpress method to get the right directory for the stylesheet as well (or hard code it).
If you're not using a child theme you could maybe modify one of the functions in with arras/library/styles.php.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 9 official extensions. Copyright © 2003–2009 PunBB.
Generated in 0.031 seconds, 10 queries executed