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

              
                <ul class="main-nav">
  <li>
    <a href="#compay">Company</a>
  </li>
  <li>
    <a href="#about">About</a>
  </li>
  <li>
    <a href="#team">Team</a>
  </li>
  <li>
    <a href="#contact">Contact Us</a>
  </li>
</ul>

<section id="compay">
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
	Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
	dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
	non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</section>

<section id="about">
	<p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
		non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde eveniet praesentium aspernatur ad mollitia dicta sint error enim itaque, dolores vel repellat iusto? Facilis quibusdam possimus, laborum aliquam alias quisquam!</p>
</section>

<section id="team">
	<p> 
		Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
		Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
		dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
		non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
		
		Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste quibusdam rerum cupiditate. Reprehenderit, maxime ducimus ex aliquid officia nesciunt vero rerum atque assumenda odit in, quaerat odio tenetur impedit illum.
		</p>

		<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias porro numquam ipsam asperiores cupiditate voluptates, tempore libero. Non repudiandae omnis quaerat magnam totam beatae numquam delectus, eveniet, mollitia sequi sunt.</p>

		<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias porro numquam ipsam asperiores cupiditate voluptates,
					tempore libero. Non repudiandae omnis quaerat magnam totam beatae numquam delectus, eveniet, mollitia sequi sunt.</p>
</section>

<section id="contact">
	<p> contact us details here </p>
</section>
              
            
!

CSS

              
                #compay:target {
  background-color: #cce5f6;
}

#about:target {
  background-color: #f9d2ce;
}

#team:target {
  background-color: #fbf0c3;
}

#contact:target {
  background-color: #cbf2db;
}


/* Page Style */
body {
  padding-top: 50px;
  margin: 0;
}

.main-nav {
  list-style: none;
  position: fixed;
  width: 100%;
  top: 0;
  margin: 0;
  line-height: 30px;
  background-color: #fff;
}

.main-nav li {
  display: inline-block;
  margin: 10px;
}

.main-nav a {
  color: #2ecc71;
  font-weight: bold;
  text-decoration: none;
}

.main-nav a:hover {
  color: #ed796d;
}

section {
  padding: 40px 30px 10px;
  border-bottom: 1px solid gray;
}
              
            
!

JS

              
                
              
            
!
999px

Console