4 ms·
I like how he explains separating layout from presentation. When writing the layout code, keep in mind how its coupled to the HTML. This link mentions how "lay
by joshribakoff 11y ago
I like how he explains separating layout from presentation. When writing the layout code, keep in mind how its coupled to the HTML.
This link mentions how "layout" like z-index is coupled to the structure of HTML, because nesting elements creates new stacking contexts (Z-index is hierarchical - an element's z-index only controls it's depth within the current context, not the overall document).
http://philipwalton.com/articles/what-no-one-told-you-about-z-index/ http://philipwalton.com/articles/what-no-one-told-you-about-...
This one advises using "js" prefixed classes for JS, so the JS is only coupled to the HTML & not the CSS:
http://philipwalton.com/articles/decoupling-html-css-and-javascript/ http://philipwalton.com/articles/decoupling-html-css-and-jav...