Which should I use? (performance)
Posted
by
Yim
on Stack Overflow
See other posts from Stack Overflow
or by Yim
Published on 2012-04-01T05:16:31Z
Indexed on
2012/04/01
5:28 UTC
Read the original article
Hit count: 117
css
|Performance
I want to know a simple thing:
when setting up a style that is inherited by all its children, is it recommended most specific? (even if you don't care others having this style)
Structure: html > body > parent_content > wrapper > p
- I don't care having
parent_content
orwrapper
having the style - I do care changing the
html
orbody
style (or allp
)
So what should I use?
#parent_content{
color:#555;
}
#parent_content p{
color:#555;
}
#wrapper{
color:#555;
}
...
Also, some links to tutorials about this would be great
© Stack Overflow or respective owner