Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a different stylesheet for IE...

Status
Not open for further replies.

Pemdas21

Technical User
Mar 10, 2007
5
Okay, I am teaching myself css, and have created <a href=" Now it doesn't show up even remotely correct in IE, so I want to use javascript to switch between two different css files based upon browser. I want to have one name global.css, which applies to every browser except IE, and one name IE.css which only applies to IE. Now I have tried to create a script to do this, but it doesn't work. Here is the link to the page with the faulty script. <a href="
 
Hi and welcome to Tek-Tips. Read faq222-2244 first to see how to get the best from these forums.

To get any consistency in appearance its a good idea to supply a full and valid doctype first. Then set your character encoding and have a look at the other validation errors. See to get a start.

If you just want conditional stuff for IE you could look at
which may provide a simpler solution than JS

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Well, I have decided just to have one stylesheet. Thanks for your help anyways. I certainly will be using this forum! By the way, do you like what my site looks like? (it is my very first one completely done with notepad!
 
The initial popups pushing Firefox are obnoxious, not something I'd expect from a professional web designer.

Lee
 

I see that you haven't yet taken my initial advice - still no doctype, no character encoding, HTML doesn't validate, CSS doesn't validate, huge image sizes (only good for for slow loading [smile]).

Your advice on browser choice may be well intentioned, but it will still annoy a lot of your potential customers

As you are using CSS you shouldn't need to use <center> tags - I notice you're not using much of your CSS yet

I personally find the background image distracting

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
You may want to post your site on the HTML/CSS forum for proper web page coding practices and ideas. I'll warn you though, be ready for a tongue lashing. forum215

[monkey][snake] <.
 
OOps - my apologies - I'd forgotten which forum I was in when I replied!

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top