Created
October 16, 2012 22:46
-
-
Save rossdm/3902554 to your computer and use it in GitHub Desktop.
column layout
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
| /** | |
| * column layout | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; | |
| .container { display:block;width:100%; /* or whatever you are using */ } | |
| .col { display:block;float:left;width:25%; } | |
| .box { display:block; padding:10px;margin:10px;} | |
| .clear { display:block; clear:both;line-height:0;} |
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="container"> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box"> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="clear"></div> | |
| </div><div class="container"> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="col"> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| <div class="box">my content, which can be xx px heigh.</div> | |
| </div> | |
| <div class="clear"></div> | |
| </div>y> --> |
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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment