pydrummer.github.io-reading-notes-

CSS Layout

I decided to make a quick tutorial and show the most important take away from this chapter.

Key Concepts

Remember that CSS treates each HTML element as tho it is in it’s own box.

Boxes will either be block-leve or inline.

If one Block-level element sits inside another then the outer box is the containing or parent element.

One common example of this is by using the <div> elements to store other elements.

Positioning is important can control the flow of the page. It is controlled by the position and float properties.

Z-Index

Z-index decides which element is highest on the page within the normal flow.

As the number of the Z-index is higher the higher up the element will be.

Clear

If you want the page to look nice you might want to use the Clear property to say that no elements should touch

Width, Float and Margin

Width can be a very powerful property for CSS. It sets the width of the columns.

When you are using multiple columns you will need to use width float and margins to control these columns to look nice.

Consider Screen Sizes

When creating your website keep in mind users might be using different sized screens like a tablet, phone or computer monitor. You’ll need to set parameters in CSS so that everything looks right.

Return to Main Page