18. 10. 2010
Descendant selectors like .content .sidebar are problematic because to determine whether it should apply the styles to .sidebar, it has to find .content. Child selectors (Ex. .content > .sidebar) are better than general descendant selectors because the browser only has to check one other element instead of mutiple elements.

„Why we don’t have a parent selector” — čtete celé, Jonathan Snook válí!

Komentáře

Tagy: výkon css prohlížeče

blog comments powered by Disqus

Veřejná školení
Webexpo Academy, Praha

HTML5 & CSS3
29/5
Mobilní
webdesign
18/6