code_junkie

Does IE7 have a problem with some CSS attribute selectors

Nov 14th, 2011
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <style>
  2. label[for="foo"] {
  3. background: blue;
  4. padding: 1em
  5. }
  6. </style>
  7.  
  8. <form>
  9. <label for="foo"/>bar</label>
  10. <input name="foo" type="text"/>
  11. </form>
  12.  
  13. <style>
  14. label[fro="foo"] {
  15. background: blue;
  16. padding: 1em
  17. }
  18. </style>
  19.  
  20. <form>
  21. <label fro="foo"/>bar</label>
  22. <input name="foo" type="text"/>
  23. </form>
Add Comment
Please, Sign In to add comment