It Is NOT That Hard To Align Your HTML/CSS Elements [A How-To Guide]

Written by tacodtripa | Published 2020/05/08
Tech Story Tags: html-css | css-fundamentals | html-element-alignment | css-element-alignment | how-to-align-my-css-elements | how-to-align-my-html-elements | latest-tech-stories | web-development

TLDR The holy grail of the web design layout: Flexbox. It is the strongest tool to align an item, the duo relative-absolute. You can force the position of WHATEVER you want using this duo, something as small as an icon or as big as your <main>. You can create as much <div>'s as you desire to stretch the whole viewport. You need to define a general margin class so your elements will have their own well-defined space. The same goes for padding, you can play with the numbers of the top, bottom, left and right attributes.via the TL;DR App

no story

Published by HackerNoon on 2020/05/08