Jump to content

what is the value of star in css?


Recommended Posts

/* CSS Document */*{line-height:12px; font-family:Arial, Helvetica, sans-serif; font-size:12px;}body {margin:0;}ul, li, p, span, div, h1, h2, h3, h4, h5, h6, form, input {margin:0; padding:0;}

I downloaded a css template from internet the first line of css starts with ' * ' and some properties as shown below what does this mean? *{line-height:12px; font-family:Arial, Helvetica, sans-serif; font-size:12px;}

Link to comment
Share on other sites



This willAssign


to all elements in the document.The Asterisk, is normaly used to reset all element's margin and padding to: 0px. Elements (e.g: <h1>) that already have default value of padding/margin, ll be reset to zero pixel (0px).

Edited by eTianbun
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...