By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,695 Members | 1,338 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,695 IT Pros & Developers. It's quick & easy.

defining global styles. input text vs input button

P: n/a
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.

Jul 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
so*******@gmail.com wrote:
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
Jul 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.