Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                
<!-- 4. Повторить страницу по данному образцу -->
  <div class="content">
    <div class="nav">
      <ul>
        <li><a 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>Proin tristique lorem</h1>
      <p>Lorem ipsum dolor <span><a href="#">sit amet</a></span>, consectetur adipiscing elit. Nulla pharetra risus erat, eu imperdiet felis suscipit at. Vivamus rhoncus vel neque non eleifend. Donec adipiscing eros quis molestie sodales. Proin vitae nulla ut sem lobortis scelerisque. Aliquam ultricies porta sem quis fringilla. Quisque pretium enim ut elit fringilla, in adipiscing ligula placerat. Integer id tortor tristique, facilisis lorem sit amet, porta ante. Nulla eget diam in erat hendrerit gravida.</p>
      <p>Cras ut nunc metus. Nullam id faucibus ante. <span><a href="#">Proin tristique lorem</a></span> 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>
              
            
!

CSS

              
                /*5. Повторить страницу по данному образцу*/
.content {
  width: 650px;
  border: 1px solid black;
  margin: 50px auto;
}

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

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

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

.clearfix {
  clear: both;
}

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

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

.wrapper span a {
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  color: black;
  background-color: white;
}

.wrapper span a:hover {
  text-decoration: underline;
  color: green;
}

              
            
!

JS

              
                
              
            
!
999px

Console