CSS: Detecting Browsers/Browser Issue

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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?
 
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.
 

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...
 

WendyM

Retired Trusted Advisor
Joined
Jun 27, 2003
Messages
4,042
ChunkyTeXas said:
Whats the easiest way to fix this?
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.
 

tomdkat

Retired Trusted Advisor
Joined
May 6, 2006
Messages
7,148
WendyM said:
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.
Very true, indeed! :)

Peace...
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Top