Created
June 21, 2013 17:59
-
-
Save gustaff-weldon/5833055 to your computer and use it in GitHub Desktop.
Width of absolute child
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
/** | |
* Width of absolute child | |
*/ | |
.half { | |
width: 50%; | |
} | |
.form-element-line{ | |
display: block; | |
position: relative; | |
background: #e1f0e8; | |
} | |
.form-flyout { | |
position: absolute; | |
min-width: 100%; | |
border: 1px solid #b1b1b1; | |
background: #fefefe; | |
} |
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="form-element form-element-line half"> | |
<input class="form-input"> | |
<div class="form-flyout"> | |
<p>Some arbitrary content | |
fdfsdf fsdfsdfdsff fdsfdsffsdfdfsdfdfdsfffsdffdsfsdfdsffs | |
dfdsfdsfdfsdfdsfdsfsddfsfsdfsdfsdfsdfdfdfdsffsdfsdfsdfdfsfsdfdffsdfdsfsfdsfsdfdsfdfdsfsdfdsfsd | |
fsfsfsdfsdfdsfdfdsfdsfdfdsffdfsdffffsffsfdsffsfdsfsfdffffdf</p> | |
</div> | |
</div> |
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
// alert('Hello world!'); |
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