What does the smiley face “:)” mean in CSS?
I spotted this CSS code in a project: html, body { :)width: 640px;} I have been around with CSS for a long time now but I never saw this ":)" code before. Does it mean anything or is it just a typo? From an article at javascriptkit.com , that's applied for IE 7 and earlier versions: if you add a non-alphanumeric character such as an asterisk ( * ) immediately before a property name, the property will be applied in IE and not in other browsers. Also there's a hack for <= IE 8 : div { color: blue; /* All browsers */ color: purple\9; /* IE8 and earlier */ *color: pink; /* IE7 and earlier */ }