What is the Quicker / More Efficient CSS styling
Posted
by Sessa
on Stack Overflow
See other posts from Stack Overflow
or by Sessa
Published on 2010-06-08T18:16:20Z
Indexed on
2010/06/08
18:32 UTC
Read the original article
Hit count: 160
css
I have been curious as to which method of CSS styling is quicker (rendering wise) and then from simply a best practices perspective which method makes more sense (pretty subjective I would say?).
I can create base classes like:
.rounded-corners-5 { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
OR
I can do the other method of applying styles to multiple IDs/Classes:
#box1, #header, #container, .titles { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
© Stack Overflow or respective owner