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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!--  архив9.5 -->
<!-- Повторить страанице по данному образцу -->
  <div class="content">
    <div class="header">
      <div class="nav">
        <ul>
          <li><a class="first" href="#">Главная</a></li>
          <li><a href="#">Новости</a></li>
          <li><a href="#">Контакты</a></li>
          <li><a href="#">О компании</a></li>
          <li><a href="#">Как добраться</a></li>
        </ul>
      </div>
      <div class="clearfix"></div>
      <div class="wrapper">
        <h1>Vestibulum ante ipsum</h1>
        <p>Vestibulum ante ipsum primis <a href="#">in faucibus orci luctus</a> et ultrices posuere cubilia Curae; Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin eu fermentum diam, vitae faucibus ligula. Nam nec risus sed nisi porttitor ullamcorper iaculis ac nulla. Sed condimentum nisi in tincidunt adipiscing. Mauris vehicula mollis consequat. Vivamus non accumsan tortor. Aliquam dictum justo et augue viverra, vel interdum lorem pharetra.</p>
        <p>Nullam id faucibus ante. <a href="#">Proin tristique lorem</a> tristique dolor porttitor, eget adipiscing leo gravida. Proin erat erat, laoreet sit amet tincidunt ac, iaculis nec libero. In placerat odio ac dapibus faucibus. Praesent ut est in ligula facilisis congue eget ac ante. Phasellus at felis vitae est molestie ultricies.</p>
      </div>
    </div>
    <div class="footer">
      <p>Aenean eu auctor diam, et euismod nulla. Nulla lacinia ultricies accumsan &copy site.ru</p>
    </div>
  </div>
              
            
!

CSS

              
                /*6. Повторить страницу по данному образцу*/
.content {
  width: 660px;
  margin: 50px auto;
}

.header {
  border: 1px solid black;
}

.nav ul {
  background-color: #484848;
  height: 25px;
  margin: 0;
  padding: 5px 0 0 0;
}

.nav li {
  list-style-type: none;
  float: left;
  margin-right: 10px;
}

.nav li a {
  text-decoration: none;
  font: 12px Arial, serif;
  font-weight: bold;
  color: white;
  padding: 8px 6px;
}

.nav a.first:link,
.nav a.first:link {
  background-color: white;
  padding: 8px 6px;
  color: #484848;
}

.nav a:hover {
  background-color: white;
  color: #484848;
  padding: 8px 6px;
}

.clearfix {
  clear: both;
}

.wrapper h1 {
  text-align: center;
  font-size: 29px;
  margin-bottom: 10px;
}

.wrapper p {
  text-align: justify;
  margin: 0 10px 10px;
}

.wrapper a:link,
.wrapper a:visited {
  color: black;
  font-weight: bold;
}

.wrapper a:hover {
  text-decoration: none;
}

.footer p {
  text-align: center;
  font: 12px Arial, serif;
  margin-top: 20px;
}

              
            
!

JS

              
                
              
            
!
999px

Console