Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                  <div class="container">
  	<div class="content">
  		<header>
  			<h1>Header</h1>
  			<nav>
  				<a href="#">hoge</a>
  				<a href="#">huga</a>
  				<a href="#">piyo</a>
  			</nav>
  		</header>
  		<p>
  			foo bar
  		</p>

  		<h1>Heading</h1>
  		<h2>Heading</h2>
  		<h3>Heading</h3>
  		<h4>Heading</h4>
  		<h5>Heading</h5>
  		<h6>Heading</h6>
  		<div class="bg-warning rounded black p small"><span class="large">Note!</span><br> pill class is used for these, the rounded class while it can also do it, it's meant for alerts as only pill have <code class="normal">white-space: nowrap;</code> which makes it not break.</div>
  		<div class="example-grid">
  			<div class="row">
  				<div class="1 col">1 col</div>
  				<div class="11 col">11 col</div>
  			</div>
  			<div class="row">
  				<div class="2 col">2 col</div>
  				<div class="10 col">10 col</div>
  			</div>
  			<div class="row">
  				<div class="3 col">3 col</div>
  				<div class="9 col">9 col</div>
  			</div>
  			<div class="row">
  				<div class="4 col">4 col</div>
  				<div class="8 col">8 col</div>
  			</div>
  			<div class="row">
  				<div class="5 col">5 col</div>
  				<div class="7 col">7 col</div>
  			</div>
  			<div class="row">
  				<div class="6 col">6 col</div>
  				<div class="6 col">6 col</div>
  			</div>
  		</div>
  		<div class="btn white bg-accent">bg-accent</div>
  		<div class="btn white bg-info">bg-info</div>
  		<div class="btn white bg-success">bg-success</div>

  		<button class="btn bg-error white">Error Button</button>
  		<button class="btn primary success">Success Primary Ghost Button</button>
  		<form class="tacenter">
  			<input type="text" class="rounded" placeholder="rounded input"><br>
  			<input type="text" class="pill" placeholder="pill input"><br>
  			<input type="text" class="primary" placeholder="primary input"><br>
  			<input type="text" class="border b-success" placeholder="border b-success input"><br>
  			<input type="text" class="border b-error" placeholder="border b-error input"><br>
  			<textarea class="rounded bg-success white" placeholder="rounded bg-success white textarea"></textarea><br>
  			<label>primary pill submit button<br><input type="submit" class="primary pill" value="Submit"></label>
  		</form>

  		<div class="row">
  			<div class="card col bg-info white">
  				<h2 class="white">Card Title</h2>
  				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p>
  				<button class="btn primary">Okay</button><button class="btn ">Cancel</button>
  			</div>

  			<div class="card col bg-warning black">
  				<h2 class="black">Card Title</h2>
  				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p>
  				<button class="btn primary">Okay</button><button class="btn secondary">Cancel</button>
  			</div>
  			<div class="card col bg-success white">
  				<h2 class="white">Card Title</h2>
  				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p>
  				<button class="btn primary">Okay</button><button class="btn secondary">Cancel</button>
  			</div>
  		</div>

  		<footer><a href="https://github.com/asvvvad/mono-color">mono/color</a> by <a href="https://asvvvad.eu.org">asvvvad</a>/2020</footer>
  	</div>
  </div>
              
            
!

CSS

              
                .example-grid .col {
	background: var(--p);
	color: var(--def);
	padding: 0.3em;
}
.example-grid .row {
	text-align: center;
	font-size: 0.8em;
	letter-spacing: 0.1rem;
	margin: 0.8em 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console