Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

CSS question?

I am building a site and I need to create 2 CSS files one for Firefox and one for IE 8. How I can direct IE 8 to read its ie.css file?

Update:

I already have another CSS for IE, I think I got it... what I did is write a small javascript code to write in html the link to the css of IE and else for firefox, opera and Safari... thanks for answering anyways...

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    You can use conditional statements to pick up link to your IE CSS file:

    <!--[if IE]>

    <link rel="stylesheet" type="text/css" href="default-ie.css" media="screen">

    <![endif]-->

    or

    <!--[if IE 8.0]>

    <link rel="stylesheet" type="text/css" href="default-ie.css" media="screen">

    <![endif]-->

    Things like this:

    <!--[if gte ie 5.5000]>

    <p>Only ie version 5.5 and up will render this paragraph.</p>

    <![endif]-->

    work very well.

    Ron

  • ?
    Lv 4
    5 years ago

    compared to HTML, CSS does not "create" something. rather, it decorates, aligns, and positions (and so on) factors in HTML. In a nutshell, CSS takes the conventional HTML output and substances some rules to the way it is unquestionably displayed. CSS can edit issues such as ingredient width and height, history coloration, border, alignment, and unquestionably visibility, for starters. HTML is able to performing a number of those issues, yet as pronounced previously, the techniques are in many cases deprecated, or are quickly to be deprecated. CSS is coated right into an internet site utilizing inner markup (contained in the actual; in form tags) or exterior markup (From a ".css" document).

  • Anonymous
    1 decade ago

    you got the codes for the IE8 that you are doing with the CSS ? Maybe you will need to configure to browser

  • 1 decade ago

    Do you have the .css file loaded in your <html> code? Or what are you using to code it?

Still have questions? Get your answers by asking now.