HighDots Forums  

defining global styles. input text vs input button

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


Discuss defining global styles. input text vs input button in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sonicsoul@gmail.com
 
Posts: n/a

Default defining global styles. input text vs input button - 07-11-2006 , 05:14 PM






Hi,
i wanted to define default global styles that would be used by 90% of
controls. I would like to differentiate input text controls from input
button controls.
is there a way to specify this in this sort of way:
input text { font-family: verdana; }
input button { font-family: arial; }

also, if i do this, and than override specific controls with custom
styles, would it be recommended practice?
<table id="Navigation"><tr><td>
<input type="text" />
</td></tr></table>
#Navigation input { backgroundColor: "#ffffff"; }

here i am overriding default input style.

this sems like the cleanest way to go about it.


Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: defining global styles. input text vs input button - 07-11-2006 , 06:26 PM






sonicsoul (AT) gmail (DOT) com wrote:

Quote:
Hi,
i wanted to define default global styles that would be used by 90% of
controls. I would like to differentiate input text controls from input
button controls.
Attribute selectors.

input[type=text] etc

Not supported by IE 6 and earlier, I don't know about the level of support
in IE 7.

Use classes instead.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


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 - 2008, Jelsoft Enterprises Ltd.