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.

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…

Author: Linfeng He

Created: 2024-04-03 Wed 20:17