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

              
                <meta name="viewport" content="width=device-width, initial-scale=1">

<div class="container-fluid">
  <div class="row navigation">
    <label for="menu" class="menu-bar"><i class="fa fa-bars"></i></label>
    <input type="checkbox" id="menu" class="check-bar"/>
    <span class="logo-big hidden-lg hidden-md"><a href="#">WOST</a></span>
    <nav class="col-lg-12 col-md-12 col-sm-12 col-xs-12 nav-menu">
      <ul>
        <li><span class="logo hidden-sm hidden-xs"><a href="#">WOST</a></span></li>
        <li class="link"><a href="#">Hjem</a></li>
        <li class="link"><a href="#">Om</a></li>
        <li class="link"><a href="#">Portfolio</a></li>
        <li class="link"><a href="#">Kontakt</a></li>
        <li class="social"><a href="#"><i class="fa fa-github-alt"></i></a></li>
        <li class="social"><a href=""><i class="fa fa-twitter"></i></a></li>
      </ul>
      <form action="" class="search">
        <input type="text" placeholder="Skriv her..." />


        <button>Søk</button>
      </form>
    </nav>
  </div>

  <div class="row content">
    <div class="col-lg-10 col-md-10 col-sm-12 col-xs-12 main">

      <article>
        <h1><a href="#" class="title">test article</a></h1>
        <h3><a href="#" class="author">by admin</a></h3>
        <div class="blog-content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis harum veritatis reprehenderit ipsa, tempora suscipit est cupiditate illo ullam debitis. Reiciendis distinctio, exercitationem quibusdam earum consequatur aut quia dolores veritatis.</div>
      </article>
            <article>
        <h1><a href="#" class="title">test article</a></h1>
        <h3><a href="#" class="author">by admin</a></h3>
        <div class="blog-content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis harum veritatis reprehenderit ipsa, tempora suscipit est cupiditate illo ullam debitis. Reiciendis distinctio, exercitationem quibusdam earum consequatur aut quia dolores veritatis.</div>
      </article>
            <article>
        <h1><a href="#" class="title">test article</a></h1>
        <h3><a href="#" class="author">by admin</a></h3>
        <div class="blog-content">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis harum veritatis reprehenderit ipsa, tempora suscipit est cupiditate illo ullam debitis. Reiciendis distinctio, exercitationem quibusdam earum consequatur aut quia dolores veritatis.</div>
      </article>

    </div>
    <div class="col-lg-2 col-md-2 hidden-sm hidden-xs sidebar">
      
      <h2>Archive</h2>
      <hr />
      <form action="" class="arkiv">
        <select name="maaned" id="maaned">
        <option value="Februar" selected>Februar</option>
        <option value="Mars">Mars</option>
        <option value="Juni">Juni</option>
        <option value="Juli">Juli</option>
        </select>
        <select name="aar" id="aar">
        <option value="2016" selected>2016</option>
        <option value="2015">2015</option>
        <option value="2014">2014</option>
        <option value="2013">2013</option>
        </select>
        <button>Søk</button>
      </form>

    </div>
  </div>
  <div class="row footer">
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
    <span>William Østensen (c)</span>
  </div>
  </div>

</div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Lora');
html,
body {
  height: 100%;


background: #02AAB0; /* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #03DEE6 10%, #02AAB0, #FAA0CD) fixed; /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #03DEE6 10%, #02AAB0, #FAA0CD) fixed; /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        
  font-family: 'Lora', 'times new roman', arial;
}

.menu-bar, .check-bar {
  display: none;
  font-size: 2em;
  font-familt: "Lora";
}

.container-fluid {
  margin: 1em auto;
  width: 80%;
  height: 100%;
}

.navigation {
  background: #11FFBD; /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #AAFFA9 , #11FFBD); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #AAFFA9, #11FFBD); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.navigation ul {
  margin: 0;
  padding: 1em;
}

.navigation ul li {
  list-style-type: none;
  display: inline-block;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
  display: inline-block;
}

.logo a {
  font-family: "Courier";
  color: #111;
}

nav {
  display: inline-block;
}

.navigation ul li a {
  padding: 0.75em;
  font-size: 1.5em;
  color: #111;
  transition: 0.4s all;
}

.navigation ul li a:hover {
  text-decoration: none;
  border-bottom: 1px solid #111;
  background: rgba(0, 0, 0, 0.2);
}

.navigation ul li .logo a:hover {
  text-decoration: underline;
  border: none;
  background: none;
}

.navigation form {
  position: absolute;
  top: 20px;
  right: 20px;
}

.navigation form input[type="text"] {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 0.5em;
  background: #222;
  border: none;
  color: white;
  transition: 0.4s all;
}

.navigation form input[type="text"]:focus {
  background: rgba(0, 0, 0, 0.7);
  outline: none;
}

.navigation form button {
  padding: 0.5em 1em;
  background: #333;
  border: none;
  color: white;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: 0.2s all;
}

.content {
  background: white;
  padding: 1.5em;
}

.content article {
  padding: 0.5em;
  margin: 0 0 2em 0;
}

.content article a {
  color: #111;
}

.content h1,
.content h3 {
  margin: 0;
  padding: 0;
  text-align: left;
}

.content h1 {
  text-transform: capitalize;
  font-weight: bold;
}

.content h3 {
  margin-bottom: 0.5em;
}

.content .blog-content {
  font-size: 1.2em;
  text-align: justify;
  text-align-last: left;
  letter-spacing: 0.025em;
  max-width: 80%;
}

.main,
.sidebar {
  margin: 0 auto;
}



.sidebar img {
  display: block;
  margin: 0 auto;
}

.sidebar p {
  margin-top: 0.5em;
  display: block;
  text-align: center;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.about-card {
  background: #222;
  color: white;
  border-radius: 5px;
  margin-bottom: 0.5em;
}

.about-card h2 {
  background: #111;
  padding: 0.25em;
}

.about-card p {
  text-align: left;
  margin: 0.5em;
  letter-spacing: 0.025em;
}

.sidebar {
  text-align: center;
}

.sidebar .arkiv select {
  margin: 0 auto 0.5em 0;
  width: 100%;
  padding: 0.2em;
}

.sidebar .arkiv button {
  width: 100%;
  padding: 0.3em 0;
  background: #222;
  color: white;
  font-weight: bold;
  font-size: 1.5em;
  border: 1px solid #111;
  transition: 0.2s all;
}

.sidebar .arkiv button:hover,
.navigation form button:hover {
  background: #111;
}

.footer {
  background: #11FFBD; /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #11FFBD, #AAFFA9); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #11FFBD, #AAFFA9); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #111;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 1.5em 0;
  text-align: center;
}


@media only screen and (min-width:1170px) { 
  .about-card p {
    text-align: center;
  }
}

@media (max-width: 970px) {
  .container-fluid {
    width: 100%;
    margin: 0;
  }
  .navigation, .footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .logo-big {
    display: inline-block;
    position: absolute;
    font-family: "Consolas";
    font-size: 2.5em;
    top: 15px;
    right: 50%;
    margin-left: -50%;
  }
  
  .logo-big a {
    padding: 0;
    font-weight: bold;
    color: #111;
  }
  
  .navigation {
    padding: 1.5em;
  }
  
  .navigation nav {
    display: none;
  }
  
  .navigation nav ul li {
    display: block;
  }
  
  .navigation nav ul li a {
    color: #111;
    }
  
  .navigation form {
    position: static;
    display: inline-block;
  }
  .content .blog-content {
    width: 100%;
  }
  .menu-bar {
    display: inline-block;
    color: #111;
    margin: 0 0.5em;
  }
  input[type=checkbox]:checked ~ nav {
    display: block;
  }
  .navigation ul li a:hover {
  text-decoration: none;
  border-bottom: none;
    background: inherit;
  color: white;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console