Book Image

CSS Modern Responsive Web Design - Create Five Different Websites [Video]

By : Laurence Lars Svekis
Book Image

CSS Modern Responsive Web Design - Create Five Different Websites [Video]

By: Laurence Lars Svekis

Overview of this book

Today, websites come with a variety of designs that are completely different from each other. As a web designer, the more exposure you have to different designs, the better. In this course, you will learn to create five different modern websites from scratch using floats, CSS Grid, and Flexbox. To understand the process behind creating reusable grids using floats and CSS, you will create a single-page responsive website. Next, you will create a single-page Flexbox website with auto-scroll JavaScript. You will then get to work with a responsive collapsible navigation bar by creating a CSS Grid website. Moving along, you will create a fully responsive website using the features of responsive float. Finally, you will create your fifth website—a CSS Flexbox website—to understand the implementation of navigation sub-menu items. By the end of this course, you will have gained the practical skills to develop real-world responsive websites using the features of CSS. All the resources for this course are available at: https://github.com/PacktPublishing/CSS-Modern-Responsive-Web-Design-Create-5-Different-Websites
Table of Contents (7 chapters)
2
Creating Five Websites from Scratch Using Modern Web Design – HTML, CSS, JavaScript
Chapter 1
CSS Course Information
Content Locked
Section 5
What Is the CSS Box Model and How to Set Border Margin Padding for Elements
HTML elements are in a rectangular shape; each can be thought of as a box with the outer property of a margin and inner with padding and content. The divider line is the border that can be set on any element. The box model wraps around the HTML element consisting of the margin, borders, padding, and content. Content dimensions of height and width can also be set for the content to be contained within.