How do I target a particular label in my css using the for="ctrl_notes"? (its the label of a textfield with id of #ctrl_notes .... but #ctrl_notes label doesn't work)
How do I target a particular label in my css using the for="ctrl_notes"? (its the label of a textfield with id of #ctrl_notes .... but #ctrl_notes label doesn't work)
Can't you give it a class or id? This method is not yet 100% supported.Code:label[for=ctrl_notes]
Also see: http://www.w3schools.com/css/css_attrib ... ectors.asp
Thanks Ruud.
That works fine, but I think I will give the label a class so IE doesn't feel left out.
IE6 is a 10 year old great-grandfather. It doesn't feel left out, it just wants to die. All successors should support the selector? But since it is still used it would be wise to use classes!
IE 7 didn't like it either unfortunately.
Hi ramjet, I'm not sure if this helps, but if you want to isolate a class for IE 6 you can put *html in front of your css selector.
*html #main { width: 500px; }
That will make the main column 500 pixels in Internet Explorer 6 only. Not sure if it also works for IE 7
All good to know, thanks Justin :D
:|Originally Posted by Justin
I've never used that hack, but understand it should be ie6 and below. Otherwise you can always use conditional comments in your html:
Code:<!--[if IE 6]> Special instructions for IE 6 here, lyke <style>....</style> and so on... <![endif]-->
Bookmarks