Jump to content

dot hack?


S@m

Recommended Posts

Not necessarily a dot. It could be other symbols too, just anything that can't be interpretted by a valid CSS reader. It makes the code only readable by Internet Explorer, this one would work too:element {margin: 10px; _margin:5px; }I don't really like using hacks though.

Link to comment
Share on other sites

Right. Me neither. I've seen *cough* used the underscore hack or the "*html hack...I’ve never seen the ".element" before. Threw me for a loop; I wasn't sure if it had significant meaning.Thanks!!

Link to comment
Share on other sites

  • 2 weeks later...

its better to use a hack that validates:heres an example:(All browsers but IE)html>body (class or ID) { PUT STYLES IN HERE }(FOR IE 6 and lower)(class or ID) { PUT STYLES IN HERE } what you do is make two of the same classes but IE doesnt recongnize the "html>body". this does validate. The styling for all browsers comes first and then the IE corrections, since the style sheet is translated from top to bottom.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...