Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
CSS Box Model Padding Margins Borders
Rating: 4.2 out of 5(236 ratings)
9,962 students

CSS Box Model Padding Margins Borders

How to work with the CSS Box model learning about Margins Padding and Borders for HTML elements
Created byLaurence Svekis
Last updated 11/2019
English

What you'll learn

  • write CSS code
  • better understand Padding Borders and Margins
  • apply CSS Box Model

Course content

2 sections8 lectures37m total length
  • CSS Box Model Introduction1:56
  • Introduction to the CSS box model5:52

    Explore the CSS box model, including content, padding, border, and margin, and learn to use shorthand and Chrome DevTools to visualize and adjust these properties in real time.

  • CSS box Model Borders10:03

    Master the CSS box model, including padding, borders, and margins, with practical div boxes and lorem text. Preview spacing in browser dev tools and learn border shorthand.

  • CSS Box model padding shorthand6:05

    Explore the CSS box model by comparing margins and padding, apply padding to a box, and master padding shorthand from one value to four using the clock analogy.

  • CSS Box Model Margins6:44

    Explore the CSS box model by using margins to create spacing between containers, including top, right, bottom, and left shorthand, and see how margins relate to padding and borders.

  • Box Model Source Code0:53
  • CSS Shorthand vs Long Declarations PX EM and Percentage4:57

    Explore how to round borders with border-radius and compare shorthand vs longhand border properties. Learn how px, em, and percentage units relate to font size and container dimensions.

Requirements

  • desire to learn
  • computer access
  • Basic HTML

Description

Understanding the CSS Box model will help you better understand how CSS works.

In web development, the CSS box model refers to the composition of a webpage or HTML page from blocks or boxes using CSS. Specifically, the box model describes how the size of each such block and its content is determined through styling instructions.

There are 4 parameters which make up the Box Model

  • Height and width dimensions of the actual content within the element
  • Padding which is the spacing between the content and the border
  • Border line surrounding the box
  • margin the spacing around the border between various elements on the webpage.

All four of the above make up the entire dimensions of the element.

This course is designed to help walk you through what the box model is and how it works.

Fast paced get to the point training, to learn about using CSS code.  

By the end of the course you will have the skills and know how to apply CSS box Model to your web code.   

I am here to help you learn how to create your own websites and ready to answer any questions you may have.

Learning how to apply CSS to design web content will help to separate you from the crowd.

Want to know more, what are you waiting for take the first step.  Join now to start learning how you too can write your own CSS code today.


Who this course is for:

  • Anyone who wants to learn more about the Box Model
  • Web designers and web developers