Layout!

This is my reading notes for Code Fellows.

Layout!

How to control where each element sits on a page and how to create attractive page layouts.

CSS treats each HTML element as if it is in its own box. This box will either be a block-level box or an inline box

Containing Elements If one block-level element sits inside another block-level element then the outer box is known as the containing or parent element

CSS has the following positioning schemes that allow you to control the layout of a page: normal flow, relative positioning, and absolute positioning. You specify the positioning scheme using the position property in CSS. You can also float elements using the float propert

To indicate where a box should be positioned, you may also need to use box offset properties to tell the browser how far from the top or bottom and left or right it should be placed. (You will meet these when we introduce the positioning schemes on the following pages.

Home