Created
July 24, 2012 20:07
-
-
Save jklm313/3172300 to your computer and use it in GitHub Desktop.
Untitled
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
.calc-emulator { | |
width: 600px; | |
border-left: 200px solid transparent; | |
box-sizing: border-box; | |
/*visual*/ | |
background: skyblue; | |
height: 280px; | |
} | |
.sidebar { | |
margin-left: -200px; | |
width: 200px; | |
float: left; | |
/*visual*/ | |
height: 200px; | |
background: #222; | |
color: white | |
} | |
.content { | |
width: 100%; | |
/*visual*/ | |
height: 200px; | |
background:orange; | |
} |
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="calc-emulator"> | |
<div class="sidebar"> | |
200px / <br/>margin-left: -200px | |
</div> | |
<div class="content"> | |
width: 100% - 200px | |
</div> | |
width: 600px, with a transparent left-border(width of .sidebar) | |
</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
{"view":"separate","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