- 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)
- 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
- div with class "section-title"
- inside setup
-
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
- Why section title in a separate div?
- Why 90vw and 1170px?
- The purpose of section-center
- Examples