Created
December 17, 2013 11:06
-
-
Save hachibeeDI/8003259 to your computer and use it in GitHub Desktop.
サイドバーをよしなにするやつ。
li要素を消したりしてみてくれやす
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
html, body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
div { | |
margin: 0; | |
padding: 0; | |
} | |
#container { | |
width: 100%; | |
height: auto !important; | |
min-height: 100%; | |
position: relative; | |
background-color: gray; | |
overflow: hidden; | |
} | |
#header { | |
height: 50px; | |
width: 100%; | |
background-color: green; | |
} | |
#footer { | |
width: 100%; | |
height: 50px; | |
background-color: green; | |
position: absolute; | |
bottom: 0; | |
} | |
#content { | |
width: 960px; | |
height: 100%; | |
background-color: red; | |
margin: 0 auto 0 0; | |
padding-bottom: 50px; /* footerのheight分 */ | |
} | |
#content:after { | |
content: "."; | |
display: block; | |
visibility: hidden; | |
height: 0.1px; | |
font-size: 0.1em; | |
line-height: 0; | |
clear: both; | |
} | |
#side { | |
width: 30%; | |
float: left; | |
background-color: lightsteelblue; | |
padding-bottom: 10000px; | |
margin-bottom: -10000px; | |
} | |
#main { | |
width: 70%; | |
height: 100%; | |
background-color: yellow; | |
float: right; | |
} | |
/** | |
* | |
#clear { | |
clear: both; | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment