Created
February 5, 2015 07:54
-
-
Save lsauer/2f42adf0285af7bde1e2 to your computer and use it in GitHub Desktop.
css: fixed width column to the right and flexible full-width left-column
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
/* lsauer.com, 2015 */ | |
.left-flexible-right-fixed .container { | |
height: auto; | |
overflow: hidden; | |
} | |
.left-flexible-right-fixed .left-inner{ | |
width: 100%; | |
} | |
.left-flexible-right-fixed .right { | |
width: 180px; | |
float: right; | |
background: #ccc; | |
} | |
.left-flexible-right-fixed .left { | |
background: #ccc; | |
/* separation properties: */ | |
width: auto; | |
overflow: hidden; | |
float: none !important; | |
} |
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
<head><title>css: fixed width column to the right and flexible full-width left-column - lsauer.com, 2015 </title></head> | |
<body> | |
<div class="left-flexible-right-fixed container"> | |
<div class="right">---right!---</div> | |
<div class="left"><input type="text" value="---left!---" /></div> | |
</div> | |
</body> |
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
/* lsauer.com, 2015 */ | |
.left-flexible-right-fixed { | |
.container { | |
height: auto; | |
overflow: hidden; | |
} | |
.left-inner { | |
width: 100%; | |
} | |
.right { | |
width: 180px; | |
float: right; | |
background: #ccc; | |
} | |
.left { | |
background: #ccc; | |
width: auto; | |
overflow: hidden; | |
float: none !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment