HTML/CSS Basics

Integration - part I

HTML/CSS Basics workshop

Rules for this workshop: build and design a web page only with a semantic HTML structure (no class, no id in CSS).

Initialisation

Good job !

Layout of your website

You will have to create a basic home page following the layout below (do not try to be pixel perfect, this image is just a guide, pink color is now replaced by purple).

Open in new tab Layout to reproduce

Browsers have default size for each HTML elements (margin, font-size, etc.). It is useful but sometimes you will prefer to reset some default behaviour. In this workshop, it could be interesting to remove margin on <body>. Furthermore, use box-sizing: border-box on each element will help you to deal element sizing (more info about box-sizing).

* {
  box-sizing: border-box;
}
body {
  margin:0;
}

Hint: Manage background size

“About us” Section

Centering in CSS: A complete guide

Because you have a <header>, you need a <footer>. This should not be a problem for you 😉.