Being a back-end and library person by heart, I am always late in the web-UI game, so this is on my list of things to try: CSS flex-box layout – Wikipedia.
I saw it being used by [WayBack] markdownlint demo: Demo for markdownlint, a Node.js style checker and lint tool for Markdown/CommonMark files.
Some links that should me help further:
- [WayBack] A Complete Guide to Flexbox | CSS-Tricks (of which I borrowed the images below)
- [WayBack] CSS Flexbox (Flexible Box)
- [WayBack] Basic concepts of flexbox – CSS: Cascading Style Sheets | MDN
- [WayBack] CSS Flexible Box Layout – CSS: Cascading Style Sheets | MDN
- [WayBack] Flexbox Cheatsheet
–jeroen