Created
April 7, 2014 02:53
-
-
Save peterwilsoncc/10014199 to your computer and use it in GitHub Desktop.
width and height priority
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
| .set-width { | |
| min-width: 50px; /* overrides */ | |
| max-width: 25px; /* which in turn, overrides */ | |
| width: 30px; | |
| } | |
| .set-height { | |
| min-height: 50px; /* overrides */ | |
| max-height: 25px; /* which in turn, overrides */ | |
| height: 30px; | |
| } |
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="set-width set-height"> | |
| <p>This would be 50 by 50 pixels</p> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment