If you like my work please vote for one of my projects:
BOBs Awards: Justtellmewhy.com. [+ Info] | Best Weblog in English
Thank you.
CSS only for Firefox | IE ignores CSS
In the "head" of the HTML of the site include the following:
<style type="text/css"> <!-- @import url(files/css/FFstyles.css) screen; --> </style>
This code is separate from the line that calls the CSS file's original site. What we want to achieve, is to "import" a style sheet alternating or rather, complementary, with specific styles for Firefox.
And why only for Firefox?.
Simple rule @ import is completely ignored by Internet Explorer, so this new CSS imported only going to read the Firefox, and the @ import has priority in the hierarchy of importance of the styles declared these to overwrite those who have already been declared in the stylesheet original site.
This gives us a great opportunity to create styles specific to Firefox, that IE does not take into account, thus giving us a much greater control over the final presentation of the site.
C. Michael Mullen | Web Design and Development, Standards, CSS, HTML and more! | Guayaquil, Ecuador | Web Design Blog
Published: January 14, 2007 | 11:19 a.m.
Categories: Accessibility, CSS, Web design, blogs








1 Comment Add your own comment
1. Nico | Published October 31, 2008 at 15:43
thanks!
If you like my work please vote for one of my projects:
BOBs Awards: Justtellmewhy.com. [+ Info] | Best Weblog in English
Thank you.
cforms contact form by delicious: days