PDA

View Full Version : Multiple css for multiple browsers/ platforms



slideri812
10-04-2005, 03:12 PM
Hi all,

I have used a browser sniffer before to detect and load the correct CSS depending ont he browser.

So I have this project I'm working on: http://www.dcvistudios.com/vaees/

The problem is that the CSS for Firefox works great on the MAC but looks just as bad on FF PC as does the current IE PC CSS. What am I missing? Most of the time CSS fo FF works great on PC or MAC but not this time.

Any help is welcomed. Maybe a different sniffer, maybe more CSS sheets. I have been lost in this for 2 days now and I just don't know!

Thanx in advance!

bj
10-04-2005, 03:58 PM
Did you fix this? It looked okay in FF Win.

My personal opinion is that you are setting yourself up for a world of hurt doing things the "bad old way" by browser sniffing. Develop for Firefox (or any of the other compliant browsers that get it right or mostly right) then fix for IE by feeding IE the hacks by use of either conditional comments or expressions. It keeps your stylesheet pretty clean and simple and futureproofs your development efforts.

DrTandem1
10-04-2005, 08:13 PM
It looked fine to me also. I checked and it does validate. Maybe you have already corrected the issue?

slideri812
10-06-2005, 10:48 AM
Thanx you guys.

Yeah, I follow the method BJ explains already. What I wanted to do was seperate the hacked up CSS file from the functional and compliant CSS and direct the browsers accordingly. I think I have it licked. I gotta say (again) IE CSS support sucks. I hacked out the CSS for FF in about and hour, it looked good and worked well. It took me two days to hack it up for IE. Go figure!

slideri812
10-06-2005, 12:45 PM
Thnax guys,

I'm such a dope. I use my MAC all the time and rarely does the PC see the light of day. Well, I believe I found my issue, FF on my PC was in need of an update. Now everything looks like it should to me. Thanx guys!