HTML/CSS Course – Day 8 – Box-Sizing: Border-Box
The box-sizing CSS property sets how the total width and height of an element is calculated. By default in the CSS box model, the width and height you assign to…
The box-sizing CSS property sets how the total width and height of an element is calculated. By default in the CSS box model, the width and height you assign to…
The Float CSS property places an element on the left or right side of its container, allowing text and inline elements to wrap around it. The element is removed from…
Pseudo-Elements don’t exist in HTML, but they do in CSS, which allows you to add some some extra decoration to the file, such as changing the color, size, font, etc.,…
In CSS, there are a couple positioning modes, but the more important ones to talk about currently are Normal Flow and Absolute Positioning. Relative Positioning is the default positioning of…
There are 3 main types of blocks in HTML: Block-Level, Inline, and Inline-Block. This entry will cover the third of the 3 elements: Inline-Block. Inline-Blocks takes the best of both…
There are 3 main types of blocks in HTML: Block-Level, Inline, and Inline-Block. This entry will cover the second of the 3 elements: Inline. Inline elements, unlike Block-Level elements, only…
There are 3 main types of blocks in HTML: Block-Level, Inline, and Inline-Block. This entry will cover the first of the 3 elements: Block-Level. Block-Level elements occupy 100% of parent…
1) Wrap a segment of your HTML code in a container such as <div>. 2) Targeting that container, set the width to whatever you wish. (Preferably somewhere around 700-800px, but…
Padding is used to give space inside certain elements, while margin is to give space between different elements. Padding also has a shorthand property for specifying the padding for each…
The CSS Box Model consists of 5 parts: 1) Content – The actual content of the element. It can be anything, such as text, images, videos, etc. 2) Border –…