HighDots Forums  

Disabled

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Disabled in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
pecan
 
Posts: n/a

Default Re: Disabled - 11-16-2008 , 11:22 PM






Ben C wrote:
Quote:
On 2008-11-04, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Hello,

I would like to change the look of disabled inputs of type text on my
web site.

Should I add a disabled css class to all these inputs or is it
possible to select them in my CSS Code ...
... not using an ID or a class ...

There's a :disabled pseudo-selector, but it's CSS 3. You could try and
it see if it works.
How does one declare the version of CSS one is using? I've searched all
over the the answer, and finally gave up.

Catherine


Reply With Quote
  #12  
Old   
dorayme
 
Posts: n/a

Default Re: Disabled - 11-17-2008 , 02:00 AM






In article <gfr3in$cat$2 (AT) news (DOT) motzarella.org>,
pecan <pecan (AT) NOSPAMrouxville (DOT) info> wrote:

Quote:
How does one declare the version of CSS one is using? I've searched all
over the the answer, and finally gave up.
If you did, it would probably fall on deaf ears.

--
dorayme


Reply With Quote
  #13  
Old   
Ben C
 
Posts: n/a

Default Re: Disabled - 11-17-2008 , 03:27 AM



On 2008-11-17, pecan <pecan (AT) NOSPAMrouxville (DOT) info> wrote:
Quote:
Ben C wrote:
On 2008-11-04, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Hello,

I would like to change the look of disabled inputs of type text on my
web site.

Should I add a disabled css class to all these inputs or is it
possible to select them in my CSS Code ...
... not using an ID or a class ...

There's a :disabled pseudo-selector, but it's CSS 3. You could try and
it see if it works.

How does one declare the version of CSS one is using? I've searched all
over the the answer, and finally gave up.
I don't think you can. You just use what you use and hope the browsers
support it.

These days 2.1 is the one all the browsers are aiming for (not 2,
although if you read the blurbs at the top you would think 2 was meant
to be more pukka). Certain things from CSS 3 (opacity for example) are
also widely supported.


Reply With Quote
  #14  
Old   
Bergamot
 
Posts: n/a

Default Re: Disabled - 11-17-2008 , 07:58 AM




pecan wrote:
Quote:
How does one declare the version of CSS one is using?
For validation purposes, the W3C validator gives you a choice under "more options".

For browsers, you don't. Browsers render per their own capabilities, which you cannot control. If there are conflicting specs between different CSS versions, all you can do is test in the most used browsers, and decide what works best overall.

For example, the width property was required for floats in CSS 2.0, but is optional in 2.1. The only browser I know of that follows 2.0 in this case is Mac IE5, but that's a dead browser so who cares?

--
Berg


Reply With Quote
  #15  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Disabled - 11-17-2008 , 09:31 AM



pecan wrote:
Quote:
Ben C wrote:
On 2008-11-04, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Hello,

I would like to change the look of disabled inputs of type text on my
web site.

As I said else where in the thread, why would you want to change the
look of disabled input? From a usability standpoint to deviate from what
the user knows and recognizes as a *disabled* control would not be
helpful. Bad idea. Why confuse your users? It is like designer who
insist on using underline instead of bold to emphasize text whn
underlined text is a web convention than means a link!

Quote:
Should I add a disabled css class to all these inputs or is it
possible to select them in my CSS Code ...
... not using an ID or a class ...

There's a :disabled pseudo-selector, but it's CSS 3. You could try and
it see if it works.
a 2.1 way is

input[disabled]

*no IE <=6 support.

Quote:
How does one declare the version of CSS one is using? I've searched all
over the the answer, and finally gave up.
Because you cannot. Proper browser behavior is to ignore what it does
not support.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #16  
Old   
pecan
 
Posts: n/a

Default Re: Disabled - 11-17-2008 , 01:52 PM



Bergamot wrote:
Quote:
pecan wrote:

How does one declare the version of CSS one is using?

For validation purposes, the W3C validator gives you a choice under
"more options".

For browsers, you don't. Browsers render per their own capabilities,
which you cannot control. If there are conflicting specs between
different CSS versions, all you can do is test in the most used
browsers, and decide what works best overall.

For example, the width property was required for floats in CSS 2.0, but
is optional in 2.1. The only browser I know of that follows 2.0 in this
case is Mac IE5, but that's a dead browser so who cares?

Ahhh... it was when I was validating my css at some stage, that I was
trying to find out how to declare it. Next time I'll look for the "more
options".
Thanks.

C


Reply With Quote
  #17  
Old   
dorayme
 
Posts: n/a

Default Re: Disabled - 11-17-2008 , 04:25 PM



In article <6od84iF3210kU1 (AT) mid (DOT) individual.net>,
Bergamot <bergamot (AT) visi (DOT) com> wrote:

Quote:
The only browser I know of that follows 2.0 in this case is Mac IE5, but
that's a dead browser so who cares?
Oy!

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.