Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JohnMorales
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnMorales/612d3bad74ccc0b064ad to your computer and use it in GitHub Desktop.
Save JohnMorales/612d3bad74ccc0b064ad to your computer and use it in GitHub Desktop.
Non-form Fieldset Style
/**
* 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;
}
<section class="fieldset">
<h1>This is not a fieldset</h1>
<p>Booyah!</p>
</section><!-- content to be placed inside <body>…</body> -->
// alert('Hello world!');
{"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