Margin vs Padding
How do I make an margin vs padding?
What is a margin vs padding? How do you make a margin vs padding? This script and codes were developed by Kevin on 12 August 2022, Friday.
Margin vs Padding - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Margin vs Padding</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="margin-box"><p>I have a margin</p></div> <div class="margin-box"><p>I have a margin</p></div> <div class="margin-box"><p>I have a margin</p></div> <div class="padding-box"><p>I have padding</p></div> <div class="padding-box"><p>I have padding</p></div> <div class="padding-box"><p>I have padding</p></div>
</div>
<div class="container"> <div class="padding-box"> <p>I have padding</p> <div class="padding-inner-box"><p>I have a lot of padding padding<p></div> <div class="margin-inner-box"><p>I have a lot of margin</p></div> </div>
</div>
</body>
</html>
Margin vs Padding - Script Codes CSS Codes
body { background: lightblue; font-size: 24px;
}
p { margin: 0; }
.container { width: 600px; margin: 50px auto; background: white; padding: 20px;
}
.margin-box,
.padding-box {
}
.margin-box { margin: 10px; background: blue; padding: 50px; margin-bottom: 100px;
}
.padding-box { padding: 50px; background: orange
}
.padding-inner-box { background: lightblue; padding: 50px;
}
.margin-inner-box { background: lightblue; margin: 50px;
}
Developer | Kevin |
Username | kevinpowell |
Uploaded | August 12, 2022 |
Rating | 3 |
Size | 1,600 Kb |
Views | 34,408 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Parallax only on large screens | 1,956 Kb |
Some fun button effects | 3,839 Kb |
Anchors with smooth scrolling | 2,641 Kb |
Collapsing divs with floats | 1,532 Kb |
Mobile nav | 2,771 Kb |
CSS blending modes test | 2,452 Kb |
Smooth Scrolling with jQuery | 3,471 Kb |
A look at some CSS units | 2,585 Kb |
Awesome Portfolio demo | 3,635 Kb |
Flexbox - Flexbox Container Properties | 1,976 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Taylor Vowell | Taylorvowell | 5,962 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
Yuliya v krylova | Rafszul | 37,351 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Slider | Mohammed-fawzy | 2,634 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
Javascript Welcome | Peterlewicki | 1,573 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
Starfield using KineticJS | Asp | 3,512 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!