Should I include CSS2 features?

This is a discussion on "Should I include CSS2 features?" within the Web Page Design section. This forum, and the thread "Should I include CSS2 features? are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 13th, 2007, 09:57
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 115
Thanks: 2
Thanked 1 Time in 1 Post
Should I include CSS2 features?

Hi!

I'm wondering whether or not it's a good idea to include these in my stylesheets; there's one particular feature I could really use right now which works in Safari but not Firefox, the text-shadow command. I have a blue sky with clouds background image to my header, I'd like to stick with pale cream heading text but it could be a little tricky to read across the clouds without a shadow for someone with poor eye sight, I would have added a shadow had I not been keen to use CSS rather than Photoshop.

It looks good with the shadow in Safari, and is readable in Firefox (without the shadow). Is there an alternative that will work in all browsers? I do not have IE to test, and to be honest I don't much care if Microsoft can't be bothered to deliver even CSS1 compatibility, users will be missing out on a lot more than just my website!
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 Jul 13th, 2007, 12:08
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

You can use properties like that if you want,, they just won't show in browsers that don't support it. As far as I am aware if a browser sees a css property it doesn't understand it just ignores it, so it should be ok. I think that's how it works anyway. The only accesible way to achieve this in other browsers is with an image and css image replacement which is fine but means more work and more code.

Oh and I think that property is a CSS 3 one. Aren't we on 2.1 now?

Pete.
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 Jul 13th, 2007, 12:22
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

As Pete said: if a browser doesn't support a CSS property, it will just ignore it.

There's nothing wrong with enhancing your website for good browsers. As long as it still works and looks okay in all popular browsers, you'll be fine.

Just remember that most of your visitors will be using IE (and mostly IE6). Don't neglect them (so make sure that text really is readable).
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 Jul 13th, 2007, 12:48
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 115
Thanks: 2
Thanked 1 Time in 1 Post
Re: Should I include CSS2 features?

Quote:
Originally Posted by MikeHopley View Post
Just remember that most of your visitors will be using IE (and mostly IE6). Don't neglect them (so make sure that text really is readable).
I hear what you're saying, but quite frankly I don't think that's good enough - Microsoft are providing sloppy standards support and I don't see why I should have to use hacks or extra code to accommodate them. IE is always the one that causes trouble, I will make my pages viewable but I won't spend half of my time working around Microsoft's problems.

The overriding thing I've been learning about recently is how I should code my pages so that they do work on a basic level in all browsers, with or without the CSS, and without all those hacks and tricks of old. CSS is not new, people should demand better from Microsoft or use a more compliant browser, I hope that Safari will step up to the mark and show how good it can be. That's all I shall say on the subject
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 Jul 13th, 2007, 14:05
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

Your users don't care about your web-politics, and -- unless your site is for web designers -- you won't be able to educate them.

For most websites, especially commercial/sales ones, looking good makes a big difference. If your site looks unstyled, or broken, then many people (customers?) will leave.

I'm not saying it has to be perfect in IE. But it should still look good in IE6+.

Even if your website has great content, most people's first impression will be visual. Many will make a superficial judgement and leave. Content is king, but you must get them to stay long enough to discover your wonderful content.

It's a miserable pity that IE is so popular. Unfortunately, IE remains the dominant browser (71% share). Global stats from http://www.thecounter.com/stats/2007/July/browser.php :
  • IE6 -- 52%
  • IE7 -- 19%
  • Firefox -- 13%
  • Netscape compatible -- 10%
  • Safari -- 3%
  • All the rest combined -- 3%
Much as I hate Microsoft, they are getting better. IE7 is a huge improvement on IE6. Its standards support, while still weaker than Firefox/Netscape/Safari/Opera, is actually quite good.

I'm hopeful that big businesses will move to Vista in the next year or so. Unlike home users (who will get Vista with new machines), businesses tend to delay upgrading until the bugs and driver issues are resolved. They also have to budget for (say) 100,000 licences! Business adoption of Vista could cause IE7 share to sky-rocket while IE6 plummets.

Once IE6 share drops below about 10%, I will spend minimal effort hacking for it. Until that glorious day, my sites must function well and look good -- not perfect, mind you -- in IE6.

Given that we can't (yet) ignore IE6, it's wise to learn the most painless ways of accommodating it. Design for good browsers, then use conditional comments to serve IE hacks: an additional, corrective stylesheet, and perhaps also javascript. This method is much cleaner than CSS hacks (which are also dangerous in the long term). You can even serve different hacks to different versions of IE . Best of all, conditional comments are valid code and are completely ignored by all good browsers.

Of course, you can choose not to hack for IE. You're the author, the designer, the boss. But it's wise to think about your audience.

Last edited by MikeHopley; Jul 13th, 2007 at 14:10.
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 Jul 13th, 2007, 14:38
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 115
Thanks: 2
Thanked 1 Time in 1 Post
Re: Should I include CSS2 features?

Quote:
Originally Posted by MikeHopley View Post
Your users don't care about your web-politics, and -- unless your site is for web designers -- you won't be able to educate them.
For the moment I have the luxury of choosing to ignore IE, as it is my own personal website I'm working on. I probably wouldn't make a very good web designer as it would do my nut in trying to keep up with all the hacks!

Just out of interest, do you know if people take any notice of those little W3C compliance badges? Does the fact that the website conforms to current standards but perhaps isn't displayed properly by their web browser make the semi-professional think twice, that perhaps they could be using a better browser?
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 Jul 13th, 2007, 14:40
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

Quote:
Originally Posted by jonnymorris View Post
For the moment I have the luxury of choosing to ignore IE, as it is my own personal website I'm working on. I probably wouldn't make a very good web designer as it would do my nut in trying to keep up with all the hacks!
Well ... there aren't that many hacks that you need to take into consideration!? It's more the fact that we've come accustomed to not using certain properties. But ... all my site work perfectly in IE6, 7, FF, Opera and Safari ... and it doesn't take me any longer to do so.
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 Jul 13th, 2007, 14:45
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 115
Thanks: 2
Thanked 1 Time in 1 Post
Re: Should I include CSS2 features?

Quote:
Originally Posted by karinne View Post
Well ... there aren't that many hacks that you need to take into consideration!? It's more the fact that we've come accustomed to not using certain properties. But ... all my site work perfectly in IE6, 7, FF, Opera and Safari ... and it doesn't take me any longer to do so.
I'm only just starting out with CSS layout, but it seems any time I want to do something I keep reading about a hack required to make it work in IE, some exception required because M$ decided to be different for no apparent reason.

You may know all these hacks and put them in intuitively, I don't know any of them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 13th, 2007, 14:48
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

Quote:
Originally Posted by jonnymorris View Post
Just out of interest, do you know if people take any notice of those little W3C compliance badges?
I suspect most users ignore them, or click on them and then run away screaming.

As tools for promoting web standards, I'm doubtful of their efficacy. They seem about as useful as "You're 12 today" birthday badges. Wear with pride!

When I first made valid web pages, I covered them in W3C badges: HTML, CSS, and WAI. Then the novelty wore off and I realised the badges were just clutter.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jul 13th, 2007, 14:48
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

Well ... give us some examples of you are having troubles with and we'll tell you if it's a hack you need or maybe just a different property that you could be using?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jul 13th, 2007, 14:57
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 115
Thanks: 2
Thanked 1 Time in 1 Post
Re: Should I include CSS2 features?

Quote:
Originally Posted by karinne View Post
Well ... give us some examples of you are having troubles with and we'll tell you if it's a hack you need or maybe just a different property that you could be using?!
Thanks for the offer. I do not have IE so only know of problems with IE when reading about how to do a certain effect. I escaped from IE and Microsoft several years ago

So far my only inconsistency is that text-shadow doesn't work in Firefox (it works very nicely in Safari), there is a work-around but I wanted to avoid using things like that, it doesn't look as nice anyway. I will just ensure that things are readable without it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jul 13th, 2007, 15:04
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Should I include CSS2 features?

With IE 7 using hacks is bad mojo anyway. Use conditional comments and IE specific Style sheets.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jul 13th, 2007, 15:19
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

Quote:
Originally Posted by moojoo View Post
With IE 7 using hacks is bad mojo anyway. Use conditional comments and IE specific Style sheets.
Exactly right, and this applies to all versions of IE (not just 7).

Technically, this is still hacking -- but it's targeted "cruise missile" hacking instead of indiscriminate "carpet bomb" hacking
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Jul 13th, 2007, 15:23
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Should I include CSS2 features?

Yes and IE 7 which is better than 6 etc.. won;t read the hacks for IE 6 which may or may not break it in 7. That is the prob.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Jul 13th, 2007, 15:30
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 115
Thanks: 2
Thanked 1 Time in 1 Post
Re: Should I include CSS2 features?

Quote:
Originally Posted by moojoo View Post
Yes and IE 7 which is better than 6 etc.. won;t read the hacks for IE 6 which may or may not break it in 7. That is the prob.
And that is exactly why I didn't want to get involved! So many little things to know, all for the sake of Microsoft! Well, mostly.

It would be great if someone could collect together all of the known IE (and other browser) CSS hacks and put them in one place, is there such a thing already? I mean with real-world examples that one can copy and paste, with a technical explanation for those that care. It would help people like me who don't have the facility to test in IE, it would be a place to check to see if there's anything I need to do (even though I hate IE).

Last edited by jonnymorris; Jul 13th, 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
  #16  
Old Jul 13th, 2007, 16:09
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

I prefer to think of IE as the problem child; its not bad per se, it just nees a little coercing in order to display things correctly. Besides, the only thing that really gets on my nerves is the box model thingy and the times when IE just decides to do something weird, that's a bit irritating. Other than that though, things are quite simple. I also hate the way that IE does a dashed border instead of a dotted one, that got to me a bit. Its mainly about css properties it doesn't support which doesn't break sites or make anything look terrible, it just makes you die a little on the inside. You get over it though, you have to.

Don't get disheartened, we've all arrived at this stage at some point, you learn how to play IE in the end like some kind of sick game.

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Jul 13th, 2007, 16:20
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I include CSS2 features?

My most-hated IE shortcoming: no support for the CSS display: table-cell. (All versions of IE.)

If this single property were fixed, then every table-based layout could be achieved easily in CSS, with none of the drawbacks of tables.

Last edited by MikeHopley; Jul 13th, 2007 at 17:31.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Jul 13th, 2007, 16:24