1
twitaman
Can You Have Browser Specific CSS files
  • 2004/11/8 17:22

  • twitaman

  • Friend of XOOPS

  • Posts: 270

  • Since: 2004/7/28


I am having a problem with displaying my page in Opera, though it looks fine in IE6.

I was able to fix the problem in Opera BUT NOW IE6 isn't displaying correctly.

I was wondering if it were possible to have two CSS files, one that would load when viewed by Opera, and one that would load when viewed by IE?

Is that possible? I know you can have Mac and Netscape CSS files so it seems like it could work.

2
tjnemez
Re: Can You Have Browser Specific CSS files
  • 2004/11/8 17:29

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


yes you can have seperate css for diff browsers, some themes come with them. but i would aim for firefox. check your site with firefox. if it is fine with firefox, it will likely be okay with opera.

i design my css to work with ie6, firefox and opera so as to have only one main css file.

3
ackbarr
Re:Can You Have Browser Specific CSS files

themes can include 3 stylesheets:

style.css - default stylesheet used if no specific stylesheet is found.
styleNN.css - stylesheet for Gecko (Netscape) based browsers
styleMAC.css - stylesheet for MAC based browsers

To solve your problem, I'd recommend using a css hack that allows you to hide rules or provide alternative rules to certain browsers (in this case IE).

A list of known css hacks are listed on the css-discuss wiki

Login

Who's Online

257 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits