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

              
                 <!-- Макет № 7 -->
  <div class="header-logo">
    <div class="logo">
      <h1>down the stream</h1>
      <p>template designed by webtemplateocean.com</p>
    </div>
    <div class="wrapper">
      <div class="header">
        <div class="nav">
          <ul>
            <li><a class="first" href="#">home</a></li>
            <li><a href="#">about</a></li>
            <li><a href="#">gallery</a></li>
            <li><a href="#">help</a></li>
            <li><a href="#">contact</a></li>
          </ul>
        </div>
        <div class="figure">
          <img src="img/image.jpg" alt="painting">
        </div>
      </div>
      <div class="content-aside">
        <div class="content">
          <div class="section">
            <h2>terms of use</h2>
            <p>Posted in <a href="#">Class apent</a> <span>Sep 20, 2019</span> <a href="#">4 comments</a></p>
            <p>Lorem ipsum dolor sit amet, consectetur.<a href="#">Creative Commons Attribution</a> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maxime doloremque accusantium eligendi et adipisci omnis quod ipsa, eum fugit tempore.</p>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad debitis nihil molestiae maxime dolor at, distinctio tempora recusandae non vel nemo numquam similique fugiat harum neque autem cupiditate accusamus laboriosam perspiciatis. Officiis consequuntur sunt rerum nostrum odit, id consectetur, ratione.</p>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus, explicabo?<a href="#">PublicDomainPictures.net.</a> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab tempore, facilis aliquid reiciendis voluptatum possimus ea mollitia facere magnam quasi perspiciatis quas, eveniet iste dolores tempora culpa inventore placeat. Sequi, totam doloremque porro odit! Illo ratione consectetur aliquam dolorem esse!... <a href="#">more</a></p>
          </div>
          <div class="section">
            <h2>lorem ipsum dolor sit amet</h2>
            <p>Posted in <a href="#">Lorem ipsum</a> <span>Sep 19, 2019</span> <a href="#">2 comments</a></p>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec dui quis urna sollicitudin sodales. Fusce laoreet, ligula et rhoncus volutpat, felis magna varius tortor, ac molestie diam lorem in lectus. Aliquam venenatis mollis est, a porttitor ipsum interdum nec. Vestibulum sed risus ac nulla viverra pharetra.</p>
            <p>Quisque congue lacus sed odio fermentum tincidunt. Proin vitae nulla velit. Cras consectetur commodo scelerisque. Curabitur leo nisl, blandit at tempus et, interdum at risus. Sed dui augue, pellentesque ac pulvinar id, malesuada eget diam. Integer elementum sem eget tortor faucibus id pellentesque lorem dignissim... <a href="#">more</a></p>
          </div>
        </div>
        <div class="aside">
          <div class="article box-odd">
            <h3>Saepe repellendus</h3>
            <p>Lorem ipsum dolor.</p>
            <p>Saepe repellendus, veniam!</p>
            <p>Repellendus laborum, sequi.</p>
            <p>Inventore laudantium, eos!</p>
            <p>Voluptate, ea, quaerat.</p>
          </div>
          <div class="article box-even">
            <h3>Integer rhoncus</h3>
            <p>Mauris sollicitudin tincidunt magna vitae semper. Curabitur ut pharetra quam. Integer rhoncus convallis urna vitae mattis. Sed pharetra massa ac metus fermentum et iaculis enim accumsan.</p>
          </div>
          <div class="article box-odd">
            <h3>Mauris sagittis</h3>
            <p>Suspendisse faucibus purus</p>
            <p>Tincidunt nec accumsan</p>
            <p>Fusce laoreet, ligula et rhoncus</p>
            <p>Adipiscing gravida pulvinar eget</p>
            <p>Cras consectetur commodo</p>
          </div>
        </div>
      </div>
      <div class="footer">
        <p>Copyright &copy 2012, designed by <a href="#">WebTemplateOcean.com<a></p>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

body {
  background-color: #B17E4F;
}

.wrapper {
  width: 960px;
  font: 14px "Trevuchet MS", Arial, Helvetica serif;
  background-color: white;
  border: 1px solid white;
  margin: 0 auto 40px;
}

/*HEADER*/

.logo {
  width: 960px;
  height: 70px;
  margin: 0 auto;
  padding-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  padding-left: 30px;
  font: bold 43px "Trebuchet MS", Arial, Helvetica serif;
  color: white;
}

.logo p {
  padding-right: 30px;
  font: 16px "Trebuchet MS", Arial, Helvetica serif;
  color: #CEB6A4;
}

.nav ul {
  width: 930px;
  background-color: black;
  margin: 15px;
  display: flex;
}

.nav li {
  list-style-type: none;
}

.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  color: white;
  padding: 20px 70.9px;
  display: inline-block;
}


a.first {
  background-color: #1B3039;
}

.nav a:hover {
  background-color: #1B3039;
}

.figure img {
  width: 930px;
  height: 220px;
  margin-left: 15px;
}

/*CONTENT-ASIDE*/

.content-aside {
  width: 960px;
  display: flex;
  justify-content: space-between;
}

/*CONTENT*/

.content {
  width: 600px;
  box-sizing: border-box;
  margin: 0 15px;
  padding: 0 25px 0 15px;
}

.section h2 {
  font-size: 36px;
  color: #9F6841;
}

.section p {
  font-size: 13px;
  line-height: 2;
  color: #444;
  padding-bottom: 30px;
}

.section a {
  text-decoration: none;
  color: #96AE3E;
}

span {
  border-left: 1px solid #444;
  border-right: 1px solid #444;
  padding: 0 7px;
  margin: 0 3px;
}

/*ASIDE*/

.aside {
  width: 310px;
}

.aside .article {
  border: 1px solid #E8E6DE;
  margin: 20px 15px 20px 0;
  background-color: #E8E6DE;
}

.aside h3 {
  font-size: 20px;
  color: white;
  background-color: #5D9EBD;
  padding: 9px 0 9px 15px;
  margin: 7px 7px 20px 7px;
}

.box-odd {
  height: 245px;
}

.article:nth-child(odd) p {
  font-size: 13px;
  color: #96AE3E;
  line-height: 2.4;
  border-bottom: 1px solid #e0dfdf;
  padding: 0 15px;
  margin: 0 7px;
}

.box-even {
  height: 220px;
}

.article:nth-child(even) p {
  font-size: 13px;
  color: #444;
  line-height: 2;
  padding: 0 20px;
}

/*FOOTER*/
.footer {
  height: 70px;
  background-color: #D1E4A7;
  margin: 40px 15px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer p {
  font-size: 12px;
}

.footer a {
  text-decoration: none;
  color: #96AE3E;
}

              
            
!

JS

              
                
              
            
!
999px

Console