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

Best Flash animation 2006 Alan Becker Paint Is it a bad tool?

1 Comment Add your own comment

1. Nico |

thanks!

If you like my work please vote for one of my projects:

BOBs Awards: Justtellmewhy.com. [+ Info] | Best Weblog in English

Thank you.

Leave your comment
  1. (required)
  2. (Please enter a valid e-mail)

cforms contact form by delicious: days

Subscribe to feed ceslava.com RSS | RSS comments