Layout Properties

There are many properties that help set the styles of your web pages.

Property Description W3 Schools Link
background-color Sets the background color of the element W3 Schools
border-color Sets the color of the border W3 Schools
border-width Changes the border width of an element W3 Schools
border-style Changes the style of border W3 Schools
width Sets the width of an element W3 Schools
height Sets the height of an element W3 Schools
float Floats an element to one side of the page W3 Schools
margin Generates space around an element W3 Schools

Found a bug in the documentation? Let us know at