reading-notes

This Repo required for Asac labs class 2


Project maintained by ManarAbdelkarim Hosted on GitHub Pages — Theme by mattgraham

Chapter 15, “Layout”

HTML5 introduces a new set of elements that allow you to divide up the parts of a page. The names of these elements indicate the kind of content you will find in them.

html5 layout

Containing Elements

Key Concepts in Positioning 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 property.

The properties of the box we can control with CSS are element margins, and padding for each box with CSS. Here is a breakdown of what each means:

boxes

-CSS has the following positioning schemes that allow you to control the layout of a page: normal flow, relative positioning, and absolute positioning. position

Floating Elements

#### What is Float ?

Floating an element changes the behavior of that element and the block level elements that follow it in normal flow. The element is moved to the left or right and removed from normal flow, and the surrounding content floats around the floated item.

The float property allows you to take an element in normal flow and place it as far to the left or right of the containing element as possible.

-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.

Note:

The floated element becomes a block-level element around which other content can flow.

The float property values:

Positioning :

What does Positioning do?

Positioning allows you to move an element from where it would be placed when in normal flow to another location. Positioning isn’t a method for creating your main page layouts

Screen Resolution

Resolution refers to the number of dots a screen shows per inch. Some devices have a higher resolution than desktop computers and most operating systems allow users to adjust the resolution of their screens.

Screen Resolution

Liquid Layouts

Liquid layout designs stretch and contract as the user increases or decreases the size of their browser window. They tend to use percentages.

Liquid

Layout Grids

Composition in any visual art (such as design, painting, or photography) is the placement or arrangement of visual elements. Grids help create professional and flexible designs You can include multiple CSS files in one page.

Conclusion :