Challenge project: build your own cheat sheet

Improved styling with CSS

Common CSS properties

Property Description
background-color Sets the background color of the element.
background-image Specifies a background image for an element.
background-repeat Specifies how the background image is repeated.
border Specifies a border for an element.
border-radius Sets the radius of the border.
box-sizing Sets how element height and width are calculated.
color Specifies the color of text in an element.
display Specify an element's display behavior.
float Sets how an element is positioned relative to other elements.
@font-face Embeds a custom font inside a web page
font-family Sets the font family for an element.
font-size Sets the size of the font for an element.
font-weight Sets the weight or thickness of the font.
height Sets the height of an element.
margin Sets the margin (outside spacing) for an element.
overflow Specifies the flow of content that exceeds the container.
padding Sets the spacing between content and element border.
position Sets the element's positioning method.
text-transform Defines text capitalization or casing.
text-justify Defines the text justification inside a container.
text-align Sets the alignment of text inside an element.
text-decoration Defines the style and color of underlined text.
width Sets the width of an element.
z-index Sets the vertical stacking order relative to other elements.