selector for textfield?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JackRbt
    New Member
    • Aug 2008
    • 22

    selector for textfield?

    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 ?? {

    }
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    [code=css]input[type="text"] {[/code]works in most browsers. Unfortunately not in IE6 though, so you'd have to use classes to make it work in all browsers.

    Comment

    • JackRbt
      New Member
      • Aug 2008
      • 22

      #3
      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.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        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.

        Comment

        Working...