-4

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

.hello
{

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

}

Thanks Vishal

Vishal Thoriya
  • 283
  • 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
  • 5,983
  • 8
  • 33
  • 56