HighDots Forums  

Input text boxes, check boxes, and radio boxes

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


Discuss Input text boxes, check boxes, and radio boxes in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shabam
 
Posts: n/a

Default Input text boxes, check boxes, and radio boxes - 09-01-2004 , 07:36 AM






I was told that dotnet generates classes for input tags like this:

<span class="hello"><input type= "checkbox"></span>

The problem here is, the "input" class is overriding the "hello" class.
Ideally I wanted the html to be this way:

<input type= "checkbox" class="hello">

However since dotnet insists on doing it the first way, it's not working for
me.

My question now is, how do I make it work so that "input" isn't overriding
"hello"? Actually, I'm trying to set a particular style for text boxes, and
another for radio buttons, and another for check boxes. Is this possible?
That way I don't even have to designate a class in my html.



Reply With Quote
  #2  
Old   
Johannes Koch
 
Posts: n/a

Default Re: Input text boxes, check boxes, and radio boxes - 09-01-2004 , 08:20 AM






Shabam wrote:
Quote:
Actually, I'm trying to set a particular style for text boxes, and
another for radio buttons, and another for check boxes. Is this possible?
That way I don't even have to designate a class in my html.
You could use the attriute selector. But it is not supported by WinIE.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Input text boxes, check boxes, and radio boxes - 09-01-2004 , 09:46 AM




"Shabam" <blislecp (AT) hotmail (DOT) com> wrote

Quote:
I was told that dotnet generates classes for input tags like this:

span class="hello"><input type= "checkbox"></span

The problem here is, the "input" class is overriding the "hello" class.
What do you mean? If you define

.hello input { ... }

you should get what you want.

Quote:
Ideally I wanted the html to be this way:

input type= "checkbox" class="hello"

However since dotnet insists on doing it the first way, it's not working
for
me.

My question now is, how do I make it work so that "input" isn't overriding
"hello"? Actually, I'm trying to set a particular style for text boxes,
and
another for radio buttons, and another for check boxes. Is this possible?
That way I don't even have to designate a class in my html.
CSS provides attribute selectors:

input[type="checkbox"]

but unfortunately IE doesn't support them.
Quote:



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.