putting space in css
Table of Contents
https://www2.lawrence.edu/fast/GREGGJ/CMSC106/lectures/CSS/Boxes.html
Bascially, padding
and margin
with suffix -top, -bottom, -left, -right
can be used.
- padding is space between content and border, if border is to be drawn
- margin is space outside border
1. centering with spaces
margin-left: auto; margin-right: auto;
Backlinks
css
Cascading Style Sheets is a markup language with
- basically all label:value pairs
- a large set of builtin properties, including colours/patterns, position styles, common functionalitis like scroll, image auto resize… Sometimes stuff that should be done with actually functions, but very common so css include them and browsers render them.
- a few syntax tweaks like classes/inheritance, class in css - class in html…