1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

CSS: Detecting Browsers/Browser Issue

Discussion in 'Web Design & Development' started by ChunkyTeXas, Oct 28, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. ChunkyTeXas

    ChunkyTeXas Thread Starter

    Joined:
    Dec 14, 2002
    Messages:
    84
    I am having Browser issues. In Firefox, the design works great, but in IE 7 certain parts of the design are placed elsewhere on the page. Whats the easiest way to fix this? Isn't there a script you insert into the head that detects the browser, then loads the correct stylesheet?
     
  2. namenotfound

    namenotfound

    Joined:
    Apr 30, 2005
    Messages:
    3,012
    You could use conditional comments.

    <!--[ifIE]>
    IE specific stylesheet
    <[endif]-->

    It's something like that, I never use them so I'm not sure if that's correct.
     
  3. tomdkat

    tomdkat Retired Trusted Advisor

    Joined:
    May 6, 2006
    Messages:
    7,148
    Yep, that's close but I'm not sure if a space is needed between the "if" and the "IE" or not.

    Here is a page with great examples of doing this AND for targetting IE 6 separately from IE 7.

    Peace...
     
  4. WendyM

    WendyM Retired Trusted Advisor

    Joined:
    Jun 27, 2003
    Messages:
    4,042
    It might not be the easiest way to fix it, but the best way to fix it is to fix the code so that it displays properly across the browsers, if that's possible. Can you post your code and a screenshot of the problem you're seeing? Maybe someone can look at it and offer some ideas.
     
  5. tomdkat

    tomdkat Retired Trusted Advisor

    Joined:
    May 6, 2006
    Messages:
    7,148
    Very true, indeed! :)

    Peace...
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/644919

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice