CSS box Modelling and positioning
A VGG Virtual Internship Assignment
CSS box model has to do with the way text, images are rendered on a web page.
there are four basic parts of the box model
- The content
- The padding area
- The border area
- The margin area
The content area is the innermost part which is usually an image or a text.
The padding area surround the content. it defines the amount of space around the content within the bordered box.
The border area surrounds the padding area and content like a fence.
The margin area is the part that separates the element from its surroundings
CSS POSITIONING
CSS position property helps to define how elements are positioned in a document.
The various CSS positioning are:
- static: This is the default position. Here, the element is placed according to normal flow.The properties top/left/bottom/right are ignored.
- Relative: In this positioning, the element is placed at some offset from its normal static position.
- Absolute: Here, the element is placed at a fixed position within its containing element.
- Fixed: In fixed positioning, the element is placed at a fixed position within the browser window. this constrains it from scrolling out of view when the page is scrolled.
Author: Ogochukwu Odom
Frontend developer (VGG virtual internship trainee)
Link to github: https://github.com/odomfavour/VGG-registration-form