This is a discussion on "One CSS for ALL browsers. Possible, or just a dream?" within the Starting Out section. This forum, and the thread "One CSS for ALL browsers. Possible, or just a dream? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
One CSS for ALL browsers. Possible, or just a dream?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
One CSS for ALL browsers. Possible, or just a dream?
A brief history...
I recently had trouble with a bit of CSS that didn't like IE7, or IE7 didn't like my CSS. Either way, I had a headache. I managed to sort it out (with help from this site! <!--[if IE7]>blahhhhhhh<!--> /\ It was something like this, can't remember 100% So really my question, or more of a discussion I wish to have, is that "Is this 'good' practice?" I mean that, ideally, I would like one CSS that is read by all browsers the same, and that all the browsers go holding hands singing and being merry whilst showing the same layout. Is this just a dream? Or is it possible (through good CSS coding) to have one CSS for all? Discuss/Answer/Spam... Gooner |
|
|
|
||||
|
Re: One CSS for ALL browsers. Possible, or just a dream?
I agree not to encourage browsers to do thier own thing but we can't have crap looking pages just cos IE6 decides that it doesn't want to display how it should.
Using conditional comments is a much safer, and updateable way of making IE do what you want it to. Using hacks is bad practice as they could mess up in other browsers or in new browsers as and when they arrive. |
|
|||
|
Re: One CSS for ALL browsers. Possible, or just a dream?
I also don't like to use it. Because if you're putting in exceptions for one browser, then you might get lazy and put another in for a different browser. Before you know it, you've got different CSS for each broswer! Nightmare!
Thing is though, it's not my CSS I'm working on, it's someone else who's written it. So without trawling through it all and figuring out which bit IE7 doesn't like, there's not really an easy way. Thus I was FORCED into using it... curses... |
|
|||
|
Re: One CSS for ALL browsers. Possible, or just a dream?
Quote:
Your argument makes perfect sense. If campaigning against bad browser behaviour is the purpose of your website, then go ahead and let visitors see the horrible IE errors. But if your website has another purpose -- such as selling a product, or attracting readership -- then you have to decide what matters more to you. Like it or not, you can expect 70% of your (potential) visitors to use IE. If the site functions or renders badly in IE, many of these visitors will leave. Choose your battles wisely! Quote:
IE is also the only browser that provides conditional comments (and thank god it does!). Last edited by MikeHopley; Sep 7th, 2007 at 15:42. |
|
||||
|
Re: One CSS for ALL browsers. Possible, or just a dream?
Quote:
Ah well... |
|
|||
|
Re: One CSS for ALL browsers. Possible, or just a dream?
Quote:
|
![]() |
| Tags |
| css, firefox |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Landing the Dream Job After College. | Sgaspar11 | Flash & Multimedia Forum | 0 | May 24th, 2007 15:33 |
| Help with Dream Weaver MX | EJB | Scripts and Online Services | 1 | Apr 17th, 2007 20:22 |
| Help using PhotoImpact and/or Dream Weaver | dazednconfuzedKC | Web Page Design | 5 | Jan 28th, 2004 15:22 |