View Full Version : what is the meaning of "*" ??

04-07-2009, 01:25 AM
* {padding:0; margin:0}

what is the meaning of "*" ??
what is the function in this css script??

http://img8.imageshack.us/img8/9331/picture1tno.png (http://img8.imageshack.us/my.php?image=picture1tno.png)

04-07-2009, 02:49 AM
* resets the browsers default settings

In this case it is setting all the padding and margins to zero

04-07-2009, 02:37 PM
'*' is the selector. It does not reset anything by itself ;)

'*' simply means 'any element'.

For example:

p * {font-weight: bold}
This says that any element that is inside a paragraph is to be rendered bold.