Difference between these CSS reset methods
I would like to know if there is any difference between these two methods.
body,ul,li,p,h1,h2,h3,h4,h5{padding:0; margin:0; list-style-type:none;}
and
body,ul,p,h1,h2,h3,h4,h5{padding:0; margin:0;}
li{list-style-type:none;}
without the need to use the global selector * The real issue here is that,
I have mentioned list-style-type:none; in the first example, even though
this attribute applies to the li tag on. But, I find myself something in
need to group all elements and just give them values , even if some values
don't apply to some elements.
So, is there a negative side to that aside from clarity issues?
No comments:
Post a Comment