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

              
                 <!-- Макет № 8 -->
  <div class="wrapper">
    <header>
      <div class="logo">
        <h1><a href="#">hovering</a></h1>
        <p>template designed by webtemplateocean.com</p>
      </div>
      <nav>
        <ul>
          <li><a href="#">home</a></li>
          <li><a href="#">about</a></li>
          <li><a href="#">products</a></li>
          <li><a href="#">gallery</a></li>
          <li><a href="#">help</a></li>
          <li><a href="#">contact</a></li>
        </ul>
      </nav>
      <figure>
        <img src="img/bee.jpg" alt="Пчела крупным планом, собирает мёд">
      </figure>
    </header>
    <div class="main">
      <aside>
        <article>
          <h3>Quisque luctus</h3>
          <ul>
            <li><a href="#">Integer non enim nec tellus</a></li>
            <li><a href="#">Lobortis tempus vel nec lorem</a></li>
            <li><a href="#">Cum sociis natoque penatibus</a></li>
            <li><a href="#">Etiam convallis enim tincidunt</a></li>
            <li><a href="#">Aenean rutrum tortor a purus</a></li>
            <li><a href="#">Integer non enim nec tellus</a></li>
          </ul>
        </article>
        <section>
          <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>
        </section>
        <article>
          <h3>Mauris sagittis</h3>
          <ul>
            <li><a href="#">Vestibulum ante ipsum primis</a></li>
            <li><a href="#">Lobortis tempus vel nec lorem</a></li>
            <li><a href="#">Cum sociis natoque penatibus</a></li>
            <li><a href="#">Aenean rutrum tortor a purus</a></li>
            <li><a href="#">Integer non enim nec tellus</a></li>
            <li><a href="#">Lobortis tempus vel nec lorem</a></li>
          </ul>
        </article>
      </aside>
      <div class="content">
        <div class="content-box">
          <h2><a href="#">Terms of Use</a></h2>
          <p>Posted in <a class="bord-right" href="#">Class apent</a> Sep 20, 2019 <a class="bord-left"href="#">4 comments</a></p>
          <p>The template is released under <a href="#">Creative Commons Attribution</a> license. So you are free to use it for personal or commercial purposes, modify it or redistribute as long as you keep the link back to WebTemplateOcean.com in the footer.</p>
          <p>Under no circumstances can you use the template for websites with illegal or immoral (even if legal) content. This includes, but is not limited to pornography, obscenity, homosexuality, abortion, violence, drugs, gambling.</p>
          <p>The template contains a public domain image from <a href="#">PDPhoto.org</a>. Although public domain pictures are free and with no obligation to credit their authors you should keep in mind that in some cases they may infringe trademark, property or any other rights of others. Therefore, it is you who has to decide whether to use the image, especially if your website will be a commercial one.</p>
          <span><a href="#">read more</a></span>
        </div>
        <div class="content-box">
          <h2><a href="#">Lorem ipsum dolor sit amet</a></h2>
          <p>Posted in <a class="bord-right" href="#">Lorem ipsum</a> Sep 19, 2019 <a class="bord-left" 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.</p>
          <span><a href="#">read more</a></span>
        </div>
      </div>
    </div>
    <footer>
      <p>Copyright &copy 2020, designed by <a class="bord" href="#">WebTemplateOcean.com</a> <a href="#">Privacy Policy</a></p>
    </footer>
  </div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

body {
  font: 14px "Trebuchet MS", Arial, Helvetica, sans-serif;
  background-color: #dddcdc;
  padding: 40px 0;
}

.wrapper {
  width: 960px;
  background-color: #fff;
  margin: 0 auto;
}

  /*HEADER*/

header .logo {
  height: 120px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1,
.logo a {
  font: 55px Georgia, Helvetica, serif;
  color: black;
  text-decoration: none;
  letter-spacing: -3px;
}

.logo p {
  font: 19px Georgia, Helvetica, serif;
  color: #888;
}

  /*NAV*/

nav ul {
  height: 80px;
  background-color: #F0A003;
  display: flex;
  justify-content: space-around;
}

nav li {
  list-style-type: none;
  margin-top: 25px;
}

nav a {
  text-decoration: none;
  font-size: 17px;
  color: #F7DAAF;
}

 /*FIGURE*/

figure {
   margin: 55px 0 65px;
 }

  /*MAIN*/

.main {
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

  /*ASIDE*/

aside {
  flex-basis: 260px;
}

article h3,
section h3 {
  font: 24px Georgia, Helvetica, serif;
  letter-spacing: -1px;
}

section {
  padding: 50px 0 20px;
}

section p {
  line-height: 2;
}

article h3,
section h3 {
  padding-bottom: 10px;
}

article li {
  line-height: 3;
  list-style-type: none;
  background: url(img/play.gif) 0 no-repeat;
  border-bottom: 1px solid #dbd9d9;
  padding-left: 15px;
}

article a,
.content-box p a,
footer a {
  color: #F0A003;
}

article a:hover,
.content-box a:hover {
  text-decoration: none;
}
  /*CONTENT*/

.content {
  flex-basis: 570px;
}

.content-box h2 {
  font: 43px Georgia, Helvetica, serif;
  letter-spacing: -2px;
  padding-bottom: 10px;
}

.content-box h2 a {
  text-decoration: none;
  color: #000;
}

.content-box p {
  text-align: justify;
  line-height: 1.8;
  padding-bottom: 25px;
}

.bord-right {
  border-right: 1px solid #999;
  padding-right: 4px;
}

.bord-left {
  border-left: 1px solid #999;
  padding-left: 4px;
}

.content-box span {
  display: flex;
  justify-content: flex-end;
}

.content-box span a {
  border: 1px solid #dbd9d9;
  padding: 5px;
  text-decoration: none;
  margin: 0 30px 70px 0;
  color: #F0A003;
}

.content-box span a:hover {
  background-color: #F7DAAF;
}

  /*FOOTER*/

footer {
  font-size: 13px;
  border-top: 1px solid #dddcdc;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.bord {
  border-right: 1px solid #999;
  padding-right: 4px;
}

              
            
!

JS

              
                
              
            
!
999px

Console