From the course: Responsive Layout

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Required CSS

Required CSS - HTML Tutorial

From the course: Responsive Layout

Start my 1-month free trial

Required CSS

- [Narrator] Even before we add any CSS to a webpage, the page already has styles applied to it. This is a page with only HTML and no CSS. Every browser provides basic styles, for example making a h1 header large and bold, and making links underlined. For the most part, we can start with the default styles and change them as we create a design. But they're a couple things we need to have in our CSS to make our page work properly. First we have box sizing. To understand this, you need to know what the box model is. This is an important part of CSS. For every element you have on the page, there are a few other things around it. You can add space around the element, either padding or margin. Padding is inside the border if you have one, and margin is outside the border. The tricky part happens when you have an element like a div that's a particular width. By default, the padding, border and margin are added on outside the div. This is not the behavior we actually want most of the time…

Contents