This homework focuses on the CSS block (box) model and Flexbox while keeping
semantic HTML, clean structure, and consistent spacing. The project introduces a shared
.container utility, section spacing, a header bottom border, and list-based layouts aligned with the design.
Live Demo: https://kutluhangil.github.io/goit-markup-hw-03/
- About the Project
- Acceptance Criteria (Mentor Checklist)
- Design & Layout Rules
- Project Structure
- Validation & Formatting
- How to Run
- Images live in
images/, styles incss/styles.css. - Global resets for
h1…h6,p,ulwith a modern normalizer (modern-normalize). - Common
.container(width: 1158px) centers and constrains content. - Sections are stacked like a book (no external margins), each using a shared
.sectionwith 120px top/bottom padding. - Flexbox is used where appropriate (header, nav, horizontal lists inside sections).
- A1 — Project root contains an
images/folder with all images. - A2 — Project root contains a
css/folder with a stylesheet. - A3 — All styles are in a single file:
css/styles.css. - A4 — File names use only lowercase Latin letters and hyphens (no spaces, uppercase, or transliteration).
- A5 — Source code is formatted with Prettier.
- A6 — All images and text content are taken from the layout.
- A7 — modern-normalize is enabled.
- A8 — Code follows the provided guidelines.
- B1 — Allow global resets using tag selectors for
h1…h6,p, andul. - B2 — Elements must not have exterior margins that break container layout.
- B3 — Use
marginfor vertical gaps between adjacent elements. - B4 — Use
paddingto create inner spacing between content and borders. - B5 — All
marginandpaddingvalues must exactly match the design. - B6 — Provide a shared
.containerutility for centering & max width. - B8 —
.containerwidth is 1158px to match the layout. - B9 —
.containerwraps main regions (header, footer, sections). - B10 — Use Flexbox only where needed (e.g., header layout, nav, horizontal lists in sections).
- B11 — Final rendered sizes in the browser match the design.
- B12 — No fixed heights; height is determined by content.
- B13 — Header includes a subtle bottom border (zoom the design to see it).
- B14 — Sections stack like a book without external margins.
- B15 — All sections use the same
.sectionclass with 120px top & bottom padding. - B16 — Portfolio cards in the “Our Portfolio” section have a bottom-only border.
.
├─ index.html
├─ css/
│ └─ styles.css
├─ images/
│ ├─ ...
└─ README.md
- Use Prettier for code formatting.
- Enable modern-normalize (via CDN or local copy).
- Check spacing, borders, and sizes against the layout precisely.
- Clone the repo and open
index.htmlin your browser. - Ensure paths to
css/styles.cssand assets inimages/are correct. - Publish via GitHub Pages (Settings → Pages) and add the live link to the repo’s About → Website.
Tip: Be strict with the box model: margins create outer gaps between components; padding creates inner spacing. Use Flexbox intentionally for horizontal alignment; don’t force heights.