by robxorb · 2y ago · 0 comments
For example - is this CSS grid-generation/layout current best-practice for building the base, foundational layer for a simple static website? Say, with three columns, one centered and wider with content, the others narrow and empty - serving as margins?
And how would one arrive there, as a solution? Searching online turns up an infinity of options such that it's difficult if not impossible to figure out how to do things in if not maybe "the" right or best way, at least "a" right way.
An older resource for learning grid would be https://youtube.com/playlist?list=PLu8EoSxDXHP5CIFvt9-ze3Ing.... 6 years old but grid itself has gone mostly unchanged. https://css-tricks.com/snippets/css/complete-guide-grid/ https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://flexboxfroggy.com/ Is a good way to introduce yourself with the concepts of flexbox.
In summary (besides the layout-specific stuff which was great) - between the MDN documentation for learning and reference:
https://developer.mozilla.org/en-US/docs/Web
And, for checking compatiblity and common practice:
A n00b like me can get a decent handle on current best practice and standards for web dev. Feel levelled-up - much appreciated!
https://jsfiddle.net/gaby_de_wilde/5muq1tag/
I forget why I'm not using a single margin:auto, probably some weird edge case I didn't want to see ever again.