Created
August 13, 2012 21:32
-
-
Save mnewt/3344244 to your computer and use it in GitHub Desktop.
Title box overlap mirror
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
/** | |
* Title box overlap mirror | |
*/ | |
.title { | |
position: absolute; left: 25px; top: 25px; } | |
.content-box { | |
position: relative; left: 50px; top: 50px; | |
width: 300px; background: white; | |
color: #000; | |
overflow: hidden; | |
color: #fff; | |
min-height:100px; | |
height:auto !important; | |
height:100px; } | |
.overlap-box { | |
position: relative; left: -25px; top:-25px; | |
z-index: 10; | |
background-color: navy; | |
white-space:nowrap; | |
color: #fff; | |
width: 300px; } | |
.article { | |
color: #333; } | |
h1 { font-size:250%; } |
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
<div class="title"> | |
<h1>This is some text</h1> | |
</div> | |
<div class="content-box"> | |
<div class="overlap-box"> | |
<h1>This is some text</h1> | |
</div> | |
<div class="article"> | |
This is the body text | |
</div> | |
</div> | |
|
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
{"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