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

              
                <!-- задание 1 -->
  <!-- Макет 1 -->
  <div class="wrapper">
    <div class="header">
      <div class="image">
        <img src="images/paint.jpg" alt="охотники за привидениями">
      </div>
      <div class="nav">
        <h2>www.site.com</h2>
        <ul>
          <li><a href="#">Главная</a></li>
          <li><a class="red" href="#">О компании</a></li>
          <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>
    <div class="sidebar-left">
      <p>left</p>
    </div>
    <div class="content">
      <h1>О компании</h1>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse urna ante, egestas ac nibh sit amet, vehicula posuere quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pretium consequat volutpat. Integer ultricies ligula eget arcu volutpat vehicula. Sed et congue nisi, ac cursus ex. Duis tempus arcu magna, quis auctor odio congue in. Duis nunc leo, tempor nec dignissim sed, euismod vel nibh.</p>
      <p>Sed consequat lobortis tellus quis fringilla. Aenean eleifend sapien quis tellus rhoncus, et elementum justo pulvinar. Vestibulum gravida metus non turpis congue dignissim. Cras vitae urna nibh. Morbi consectetur ex vel cursus bibendum. Nunc dignissim massa non lacus commodo fringilla. Sed id ipsum ac diam fermentum condimentum feugiat a nunc. Nulla tincidunt vel ante non venenatis. Vestibulum fermentum velit et auctor sodales. Sed sagittis metus eget justo lobortis lobortis. Nulla dictum condimentum ipsum, a interdum nibh rutrum a. Nulla sed justo mi. Suspendisse sit amet feugiat magna.</p>
      <p>Nulla eros justo, vulputate ac eros in, semper pharetra ex. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque venenatis pellentesque lacus, eget commodo velit. Vivamus porta lobortis elit, fringilla imperdiet leo placerat id. Sed volutpat et tortor id ultricies. Integer efficitur mi id dui porta eleifend. Aliquam aliquet condimentum eros eu euismod. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus euismod accumsan mauris at tincidunt. Etiam euismod vitae elit ut feugiat.</p>
      <p>Pellentesque pellentesque sem ac justo tristique pellentesque. Vestibulum semper pulvinar rutrum. Maecenas odio urna, porta sed lectus eget, fringilla posuere odio. Maecenas pulvinar sed massa vitae tincidunt. Praesent ullamcorper est ac lorem aliquet, sed tempus lacus iaculis. Pellentesque a odio pharetra, sagittis enim sit amet, euismod leo. Nullam egestas, nisi eget blandit dignissim, augue dui accumsan est, at tincidunt ipsum metus quis justo. Aenean sed mauris ornare, faucibus tortor in, iaculis magna. Duis eros lectus, auctor eu mi sit amet, ornare scelerisque elit.</p>
      <p>Integer a sollicitudin quam. Sed laoreet finibus velit ut rhoncus. Nunc euismod neque at ligula venenatis vestibulum. Nulla facilisi. Nunc aliquet, erat sed ullamcorper malesuada, sapien magna tempor augue, at malesuada felis enim at quam. Curabitur ornare tincidunt nisi id cursus. Nunc finibus non massa in vestibulum. Etiam euismod metus ut euismod sagittis. Donec tincidunt neque a dolor posuere egestas. Proin sed dolor dui. In urna tellus, pretium in eleifend eget, pellentesque et enim. Etiam pulvinar velit nec libero iaculis, vitae consectetur elit pellentesque.</p>
    </div>
    <div class="sidebar-right">
      <p>right</p>
    </div>
    <div class="footer">
      <h2>www.site.com - продажа всего самого лучшего!</h2>
    </div>
  </div>
              
            
!

CSS

              
                /*Макет 1*/
* {
  margin: 0;
  padding: 0;
}

.wrapper {
  width: 1300px;
  outline: 1px solid black;
  margin: 5px auto;
  display: flex;
  flex-wrap: wrap;
}

.header,
.sidebar-left,
.content,
.sidebar-right,
.footer {
  outline: 1px solid black;
}

.image {
  float: left;
  margin-top: 10px;
}

.nav ul {
  border: 1px solid black;
  display: inline-flex;
}

.nav li,
.nav a {
  list-style-type: none;
  text-decoration: none;
  font-size: 22px;
  padding: 7px;
}

.nav h2 {
  padding: 10px
}

.nav a.red:link,
.nav a.red:visited {
  text-decoration: underline;
  color: red;
}

.nav a:hover {
  text-decoration: underline;
  color: red;
}

.header,
.footer {
  width:  100%;
  height: 250px;
}

.content {
  width: 830px;
}

.content h1 {
  font-size: 38px;
  padding: 0 0 20px 20px;
}

.content p {
  padding: 0 30px 20px 30px;
  font-size: 22px;
  text-align: justify;
}

.sidebar-left,
.sidebar-right {
  font-size: 22px;
  width: 235px;
}

.footer h2 {
  text-align: center;
  position: relative;
  top: 90%;
  vertical-align: bottom;
}

              
            
!

JS

              
                
              
            
!
999px

Console