CSS Selectors: What's the point?

This is a discussion on "CSS Selectors: What's the point?" within the Web Page Design section. This forum, and the thread "CSS Selectors: What's the point? are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 4th, 2005, 22:06
New Member
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
CSS Selectors: What's the point?

So I'm playing around with attribute selectors this afternoon, marvelling at how they make my life a whole lot easier:

Code: Select all
#side_navigation input[type="text"] {
display: block; margin: auto; }
How spiffy.

Until it comes to the "world's most popular browser", of course, and they are not recognized and obviously don't work.

So now I have to come up with an alternative way of applying styles to given form element types, and if I have to do that for ie, the revised method will work in all browsers ... so why bother with css selectors at all?

If I use them and have to do everything twice, or don't use them - use an alternative method - and only do it once, why would I ever have use for them?

~Nat
Reply With Quote

  #2 (permalink)  
Old Aug 5th, 2005, 08:53
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Hi

I am not sure I fully understand your problem but see if I can help a little.

From what I know CSS selection brings wider accessibility to web pages, giving the user more options to suit their viewing needs. From a designers point of view it can be used to show off different styles whilest retaining the same content.

If you are having problems making a css selector work in internet explorer (or Internet Exploder as I prefer to call it). I recommend you view the reply posted to me from herkalees to my question: Alternative CSS Selection (IE) listed in this forum

hope this helps
Reply With Quote
  #3 (permalink)  
Old Aug 5th, 2005, 16:36
New Member
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Great pointer ... thankyou. It was mainly the 'frustration' with IE that caused me to post ... why have something available in CSS and why use it, if the world's leading browser doesn't accomodate them!? Or something like that.

Incidentally, in my travels I have also come across Dean Edward's IE7 script: a javasciprt library he called "IE7" that makes existing IE versions behave in a more standard manner. It's certainly worth looking at, although with 10-20% of user turning Javascript off, it sometimes seems like the world of webpage design is constantly fraught with trouble
Reply With Quote
  #4 (permalink)  
Old Aug 16th, 2005, 16:11
New Member
Join Date: Aug 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Selectors: What's the point?

Quote:
Originally Posted by Kolyana
So I'm playing around with attribute selectors this afternoon, marvelling at how they make my life a whole lot easier:

Code: Select all
#side_navigation input[type="text"] {
display: block; margin: auto; }
How spiffy.

Until it comes to the "world's most popular browser", of course, and they are not recognized and obviously don't work.

So now I have to come up with an alternative way of applying styles to given form element types, and if I have to do that for ie, the revised method will work in all browsers ... so why bother with css selectors at all?

If I use them and have to do everything twice, or don't use them - use an alternative method - and only do it once, why would I ever have use for them?

~Nat
I suggest, use css selectors and conform to proper web standards. Then set your site to explode out of the computer screen if viewed in IE. Then it will really live up to the name given to it earlier in this thread.



Not sure if this will help, but you never know.


titaniumbean.
Reply With Quote
Reply

Tags
css, selectors, point

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
Trying something new... point me in the right direction? Donny Bahama PHP Forum 1 Apr 18th, 2008 05:59
Discussion point for changes at WF 1840dsgn Webforumz Suggestions and Feedback 5 Sep 28th, 2007 11:45
At what point does it become infringement..... konnor5092 Webforumz Cafe 8 Mar 22nd, 2007 05:33
point me in the right direction camcool21 PHP Forum 1 Jan 24th, 2007 21:15
Loop at a specific point mohammedhajat Flash & Multimedia Forum 3 Oct 14th, 2006 03:31


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


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43