One CSS for ALL browsers. Possible, or just a dream?

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 29th, 2007, 09:54
Junior Member
Join Date: Aug 2007
Location: England
Age: 21
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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! ), using

<!--[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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Aug 29th, 2007, 10:06
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: One CSS for ALL browsers. Possible, or just a dream?

Quote:
Originally Posted by Gooner View Post
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.
Well yes, we would all like that but I fear it is an impossible dream, for now anyway.

I personally don't like using the 'if IE whatever' type workarounds/hacks because I think whilst we keep doing this we are just encouraging these browsers to keep doing their own thing rather than all complying to the same standard. But last time I said something like that I don't think people agreed with me, so I might be alone in this thought! I don't mind that though
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 29th, 2007, 10:20
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 29th, 2007, 10:20
Junior Member
Join Date: Aug 2007
Location: England
Age: 21
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 7th, 2007, 15:34
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: One CSS for ALL browsers. Possible, or just a dream?

Quote:
Originally Posted by VanessaJW View Post
I personally don't like using the 'if IE whatever' type workarounds/hacks because I think whilst we keep doing this we are just encouraging these browsers to keep doing their own thing rather than all complying to the same standard.
I don't like using them either -- I don't like anything to do with IE; it makes me feel all dirty on the inside -- but I do use them, and they are certainly the best way to send IE special instructions (CSS hacks are not a good alternative).

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:
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!
There's no need for that. Just write standards-compliant code, don't use anything too cutting edge (CSS 3, for example), and all popular browsers except IE will render your site well.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 7th, 2007, 15:45
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: One CSS for ALL browsers. Possible, or just a dream?

Quote:
Originally Posted by MikeHopley View Post
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.
Haha! I love the way you put things Mike, always makes me smile, see - Yes, I was really thinking of mass revolution - if all the web designers in the world got together and decided to stop catering to IE in that way, then IE would be forced to be more compliant! But if it's just me, then I just look like an idiot who doesn't know how to make things work across different browsers! Ah well...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 7th, 2007, 15:49
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: One CSS for ALL browsers. Possible, or just a dream?

Quote:
Originally Posted by VanessaJW View Post
Haha! I love the way you put things Mike, always makes me smile, see - Yes, I was really thinking of mass revolution - if all the web designers in the world got together and decided to stop catering to IE in that way, then IE would be forced to be more compliant! But if it's just me, then I just look like an idiot who doesn't know how to make things work across different browsers! Ah well...
Indeed! It's a beautiful dream -- a mass uprising of web designers, revolting against Microsoft.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 7th, 2007, 15:51
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: One CSS for ALL browsers. Possible, or just a dream?

Ahhh ... dreams are nice *staring into nothingness*
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, firefox

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:16.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved