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

selector for textfield?

P: 22
since it's not an element but an attribute, how do I write a style for all textfields that are in a listitem in an unordered list?

ul li input ?? {

Sep 6 '08 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 15k+
P: 16,027
Expand|Select|Wrap|Line Numbers
  1. input[type="text"] {
works in most browsers. Unfortunately not in IE6 though, so you'd have to use classes to make it work in all browsers.
Sep 6 '08 #2

P: 22
thanks, that approach makes perfect sense. But I suppose that's why it doesn't work in IE7, either.

Oh, how much better the world of software would have been if Bill Gates had never been born.
Sep 6 '08 #3

Expert Mod 15k+
P: 16,027
Attribute selectors do work in IE7, but not with complete support. You may need to use a strict doctype to get it to begin behaving anything like you'd want it to.
Sep 7 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.