Created
September 26, 2012 14:00
-
-
Save maskingtape/3788232 to your computer and use it in GitHub Desktop.
Two elements, vertical alignment bottom, variable height and width
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
/** | |
* Two elements, vertical alignment bottom, variable height and width | |
*/ | |
header { | |
display: table; | |
border-collapse:collapse; | |
height: 180px; | |
margin: 0 auto; | |
} | |
h1 { | |
width: 500px; | |
background-color: green; | |
color: white; | |
display: table-row; | |
} | |
h1 a { | |
display:table-cell; | |
min-width:200px; | |
color:white; | |
vertical-align: bottom; | |
} | |
h1 span { | |
display:table-cell; | |
width:340px; | |
vertical-align: bottom; | |
} |
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
<header> | |
<h1> | |
<a href="#">test</a> | |
<span>test</span> | |
</h1> | |
</header> |
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":"split","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