Created
March 31, 2013 22:41
-
-
Save markmichon/5282305 to your computer and use it in GitHub Desktop.
Border meetings with border-box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Border meetings with border-box */ | |
.border-box { | |
box-sizing: border-box; | |
width: 200px; | |
height: 200px; | |
background-color: #ccc; | |
border-right: 5px solid black; | |
border-bottom: 10px solid green; | |
margin-bottom:10px; | |
} | |
.content-box { | |
width: 200px; | |
height: 200px; | |
background-color: #ccc; | |
border-right: 5px solid black; | |
border-bottom: 10px solid green; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="border-box"> | |
With Border-box | |
</div> | |
<div class="content-box"> | |
Without Border-box | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment