If I have the following HTML:
<div id="container">
<div id="inner">
</div>
</div>
Is there any difference , performance wise, between:
#container #inner {
width:300px;
}
to
#inner {
width:300px;
}
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
wont really affect it,
just CSS selectors with a wide-matching key selector can hurt performance ..
some insight here: http://www.stevesouders.com/blog/2009/06/18/simplifying-css-selectors/