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!

Margins & Padding

Lesson 4
Author : 🦒
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