Created
January 5, 2017 18:34
-
-
Save sarachisholm/e4a1c3a976b4bf709a74cf30921f3919 to your computer and use it in GitHub Desktop.
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
.block { | |
display: inline-block; | |
min-width: 50%; /* 150px */ | |
max-width: 100%; /* 300px */ | |
width: calc((480px - 100%) * 480); /* or [calc((480px - 300px) * 480);], which equals 86,400px */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment