CSS - Style a Website
This course covers the basics of styling a website using CSS. Work your way through the videos/articles and I'll teach you everything you need to know to style a basic website!
I'm starting a coding bootcamp
Want to learn web development in a fun and gamefied environment? Head over to simulator.dev and see what I'm working on!

Margins & Padding

Lesson 4
Author : Mike Dane
Last Updated : October, 2017


Copy<!-- Padding -->
<div style="padding: 50px;">
     Overall padding

<div style="padding-left: 50px; padding-right: 50px;">
     Individual side padding

<div style="padding: 50px 25px 50px 25px;">
     Four side padding in same line

<!-- Margin -->
<div style="margin: 50px;">
     Overall margin

<div style="margin-left: 50px; margin-right: 50px;">
     Individual side margin

<div style="margin: 50px 25px 50px 25px;">
     Four side margin in same line