Created
October 20, 2010 17:09
-
-
Save gavinblair/636842 to your computer and use it in GitHub Desktop.
Adds : after labels and * after required labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adds : after labels */ | |
form label:after{ | |
content:":"; | |
} | |
/* Adds * after required labels */ | |
form label.required:after{ | |
content:"*"; | |
} |
Right, this solution is only good for sites that don't support IE6. I'm wondering now if it will work in IE7...
Right, I guess that makes more sense (re: form vs. #myform). Updated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shouldn't it be:
form label:after
andform label.required:after
then overridden in sub classes of the form? (ie: This isn't a special case, the other forms are the special cases, you wouldn't want this on the login form for example).