cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

  <div class="container">
    <div class="logo-box">
      <a href="/">
        <img src="https://html5book.ru/wp-content/uploads/2015/01/logo-header.png">
      <li><a href="">home</a></li>
      <li><a href="">work</a></li>
      <li><a href="">product</a></li>
      <li><a href="">about</a></li>
      <li><a href="">contact</a></li>

              body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
header {
  padding: 20px 0;
  background: repeating-linear-gradient(45deg, #f0f2ed, #f0f2ed 20px, #f8f4eb 20px, #f8f4eb 40px);
  box-shadow: 0 4px 6px rgba(0,0,0,.2);  
.container {
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
.logo-box {
  float: left;
  margin-right: 20px;
.logo-box a {
  outline: none;
  display: block;
.logo-box img {display: block;}
nav {
  overflow: hidden;
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  float: right;
nav li {
  display: inline-block;
  margin-left: 25px;
  height: 70px;
  line-height: 70px;
  transition: .5s linear;
nav a {
  text-decoration: none;
  display: block;
  position: relative;
  color: #868686;
  text-transform: uppercase;
nav a:after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 15px;
  background: #868686;
  transition: width .5s linear;  
nav a:hover:after {width: 100%;}

@media screen and (max-width: 660px) {
  header {text-align: center;}
  .logo-box {
    float: none;
    display: inline-block;
    margin: 0 0 16px 0;
  ul {float: none;}
  nav li:first-of-type {margin-left: 0;}
@media screen and (max-width: 550px) {
nav {overflow: visible;}
nav li {
  display: block;
  margin: 0;
  height: 40px;
  line-height: 40px;
nav li:hover {background: rgba(0,0,0,.1);}
nav a:after {content: none;}
Loading ..................