Try   HackMD
tags: CSS

List of CSS Attributes

  • background-color
    • changes the background color
  • color
    • changes the font color
  • text-align
    • allows you to align the font left, center, right
  • text-decoration
    • allows you to change the style
    • set it to none to remove the underline in links
  • border
    • create a border
    • give it a width style and color
  • margin
    • create a margin
    • this is outside the border
    • auto most of the time centers things
  • padding
    • add padding to an element
    • this is inside the border around the content
  • font-size
    • change the size of the font
  • font-weight
    • change the boldness of the font
  • width
    • set the width of the element
    • when dealing with images only use width
    • using % will allow the element to change with the device screen size
  • height
    • set the height of the element
    • use with discression, in most cases you want the content to determine the height