Last active
August 29, 2015 14:10
-
-
Save JohnMorales/612d3bad74ccc0b064ad to your computer and use it in GitHub Desktop.
Non-form Fieldset Style
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
/** | |
* Non-form Fieldset Style | |
*/ | |
.fieldset { | |
position: relative; | |
border: 1px solid #ddd; | |
padding: 10px; | |
} | |
.fieldset h1 { | |
position: absolute; | |
top: 0; | |
font-size: 18px; | |
line-height: 1; | |
margin: -9px 0 0; /* half of font-size */ | |
background: #fff; | |
padding: 0 3px; | |
} |
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
<section class="fieldset"> | |
<h1>This is not a fieldset</h1> | |
<p>Booyah!</p> | |
</section><!-- content to be placed inside <body>…</body> --> |
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
// alert('Hello world!'); |
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