CSS Question

Integers

Soon to be Developer!
Sep 22, 2012
119
7
What does it mean if you have this

body, h1, h2, h3, h4, h5 {
}

doesn't body mean the overall page anyway?
 

Sysode

Front-End Developer
Dec 11, 2012
1,673
848
It's handy when applying the same design to certain tags. Rather than creating a load of different ones like:

Code:
h1 { }
h2 { }
h3 { }

You can have it all together - makes the css document smaller.

EDIT: , it depends what style they are giving to them tags. They could be applying a margin of 0 and padding of 0, then they may want a padding of 10 applied to something else inside the <body> tag
 

Users who are viewing this thread

Top