Created
November 22, 2012 23:04
-
-
Save BigAB/4133247 to your computer and use it in GitHub Desktop.
Body With Padding
This file contains 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
/** | |
* Body With Padding | |
* Can't do body with padding (to solve earlier problem) | |
* has to be a inner wrapper div. Change '.demo' to | |
* 'body' to see what I mean. | |
*/ | |
html, body { | |
position: relative; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
border: 0 none; | |
background: blue; | |
} | |
.demo { | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
margin: auto; | |
overflow: auto; | |
color: #eee; | |
padding: 1em 2em; | |
font-family: "Avant Garde", arial, sans-serif; | |
font-size: 2em; | |
} |
This file contains 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
<!-- content to be placed inside <body>…</body> --> | |
<div class="just a little demo div"> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
<p>Some content</p> | |
</div> |
This file contains 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-vertical","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