1. 100% width divs not spanning entire width of the browser in webkit. Even Body can not span the entire width of the browser. So crazy.There is a funny way to fix it: html { overflow-y: scroll; } 2. When Div is 100% width, set padding: 20px. Then…
Describe what a "reset" CSS file does and how it's useful. What Is A CSS Reset? A CSS Reset (or "Reset CSS") is a short, often compressed (minified) set of CSS rules that resets the styling of all HTML elements to a consistent baseline…
1. Selector Different types of selectors: Selectors can be divided into the following categories: Simple selectors: Match one or more elements based on element type, class, or id. Attribute selectors: Match one or more elements based on their attribu…
Review In this lesson, we covered the four properties of the box model: height and width, padding, borders, and margins. Understanding the box model is an important step towards learning more advanced HTML and CSS topics. Let's take a minute to revie…
Margin vs. PaddingMargin is on the outside of block elements while padding is on the inside. Use margin to separate the block from things outside it. Use padding to move the contents away from the edges of the block. Enter image description here:When…