This Repo required for Asac labs class 2
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.
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:
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.
Controlling the Position of Elements
-CSS has the following positioning schemes that allow you to control the layout of a page: normal flow, relative positioning, and absolute positioning.
#### 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.
The floated element becomes a block-level element around which other content can flow.
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
Normal flow : is the way that Block and Inline elements are displayed on a page before any changes are made to their layout.
position:static
Relative Positioning Relative positioning moves an element in relation to where it would have been in normal flow.
position:relative
Absolute Positioning When the position property is given a value of absolute, the box is taken out of normal flow and no longer affects the position of other elements on the page.
position:absolute
Fixed Positioning Fixed positioning is a type of absolute positioning that requires the position property to have a value of fixed.
position:fixed
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.
Liquid layout designs stretch and contract as the user increases or decreases the size of their browser window. They tend to use percentages.
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 :