Skip to main content

All Questions

2 votes
1 answer
1k views

How CSS specificity affects site performance & page load time

please look for 2 websites: http://kutra.pl/id/id.html http://kutra.pl/class/class.html Both were prepared with similar HTML, one CSS stylesheest, and 6 identical images. In first case, inside CSS, a ...
Michał Kutra's user avatar
0 votes
2 answers
787 views

CSS specificity best practice: + selector vs class vs rule overwriting

I have a piece of HTML code like this one: <div id="a"> <p>A piece of HTML</p> <div> According to some conditions it will be placed differently into a page and consequently ...
BananaDeveloper's user avatar
6 votes
7 answers
2k views

Best Practices for CSS Specificity? [closed]

I am creating a contact form that will be included on several different sites. The styles of the contact form and the styles of the site will both be included and I can't very well predict the ...
Jo Sprague's user avatar
  • 17.5k