Skip to content

Files

Latest commit

0afd99c · Nov 13, 2022

History

History

06-display-property

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 13, 2022
Nov 13, 2022
Nov 13, 2022

Display Property Project

Setup

  • create folder (06-display-property)
  • create index.html, general structure
  • give it a title (display property)
  • create css file (main.css)
  • link to css file in html (head element)

HTML (structure)

  • create div with class "section"
    • inside setup
      • div with class "section-title"
        • inside setup
        • h1
        • div with class "title-underline"
      • div with class "section-center"
        • inside setup
        • p

CSS (styles)

  • setup reset

  • select body, add system fonts, background (#f1f5f9), line height

  • select section, add padding, background (#fff)

  • select "section-title", add text-align, text-transform

  • select .title-underline, add height, width, background, place in the center, add margin in the bottom

  • select section center, add width (90vw), max-width (1170px), place in the center

Questions

  • Why section title in a separate div?
  • Why 90vw and 1170px?
  • The purpose of section-center
  • Examples