SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE6 and sibling selectors

    Quick question:
    IE6 doesn't support adjacent sibling selectors, correct?
    For example, input + label to apply special style to labels following an input (checkboxes & radio buttons)

    My problem is: I have float: left for normal labels (in front of input type=text etc), but I want float: none if the label is on the right side of the input.

    Works in Mozilla of course, but not in IE

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    When dealing with IE6/Windows, overclassing is everything. Sibling selectors will not work .

  3. #3
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I.e. same concept as for attribute selectors?

    Does anything work in IE?

  4. #4
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jofa
    Does anything work in IE?
    Yeah - but not quite as you'd expect.
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •