Created
December 10, 2013 01:52
-
-
Save frozonfreak/7884592 to your computer and use it in GitHub Desktop.
Imitating calc() Fallback or Fixed-Width Sidebar In Responsive Layout
Source:http://osvaldas.info/imitating-calc-fallback-fixed-width-sidebar-in-responsive-layout
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 | |
{ | |
width: 80%; /* 960 */ | |
width: -webkit-calc( 100% - 15em ); /* 240 */ | |
width: -moz-calc( 100% - 15em ); /* 240 */ | |
width: calc( 100% - 15em ); /* 240 */ | |
float: left; | |
} | |
.sidebar | |
{ | |
width: 16.666%; /* 200 */ | |
width: -webkit-calc( 12.5em ); /* 200 */ | |
width: -moz-calc( 12.5em ); /* 200 */ | |
width: calc( 12.5em ); /* 200 */ | |
float: right; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment