Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Last active March 26, 2018 18:08
Show Gist options
  • Save kenmazaika/72f7a1c240ffac8ef4c3d3c89739293b to your computer and use it in GitHub Desktop.
Save kenmazaika/72f7a1c240ffac8ef4c3d3c89739293b to your computer and use it in GitHub Desktop.

Box Model Example

A simple webpage to showcase the difference between setting an item's margin vs. padding and an in-depth process of considering the implications of the CSS Model Model.

<html>
<head>
<style>
.my-box {
border-style: solid;
background-color: yellow;
}
</style>
</head>
<div class="my-box">
<h1>Ken Mazaika</h1>
</div>
</html>
@OlivierLaflamme
Copy link

nice thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment