PDA

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


fattat
04-07-2009, 02: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)

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

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

domedia
04-07-2009, 03: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.