-4

what is meaning of '*' before any CSS attribute like.

.hello
{

margin-top:5px;
*margin-top:10px;

}

Thanks Vishal

Vishal Thoriya
  • 273
  • 5
  • 19

1 Answers1

0

I'll answer this because it has a quick answer. Basically it's a hack to define IE only styles. IE will ignore the syntax error and apply the CSS rule anyway. However I don't recommend it. Instead use conditional comments because its safer

Pattle
  • 6,653
  • 7
  • 30
  • 54