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

              
                <!DOCTYPE html>
<html lang="it">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="">
    <meta name="keywords" content="">

    <title>Starter Template </title>

    <!-- Reset Css -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css" rel="stylesheet">


    <!-- Google Font -->
    <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700' rel='stylesheet' type='text/css'>

  </head>
  <body>

    <div class="container clearfix">
      <header class="header clearfix">
        <a href="" class="header__logo">Mio Tema</a>
        <a href="#" class="header__icon-bar"><span></span><span></span><span></span></a>
        <ul class="header__menu">
          <li class="header__menu__item"><a href="">Link</a></li>
          <li class="header__menu__item"><a href="">Link</a></li>
          <li class="header__menu__item"><a href="">Link</a></li>
          <li class="header__menu__item"><a href="">Link</a></li>
          <li class="header__menu__item"><a href="">Link</a></li>
        </ul>
      </header>

      <h1 class="main-title">Il mio primo tema wordpress</h1>

      <div class="content">
          <article class="post">
            <h2>lorem</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur quo voluptatibus doloribus quis in, cupiditate omnis. Earum voluptate non molestias porro magni praesentium, ipsa, pariatur ducimus qui hic, ab quae.</p>
          </article>
          <article class="post">
            <h2>lorem</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur quo voluptatibus doloribus quis in, cupiditate omnis. Earum voluptate non molestias porro magni praesentium, ipsa, pariatur ducimus qui hic, ab quae.</p>
          </article>
          <article class="post">
            <h2>lorem</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur quo voluptatibus doloribus quis in, cupiditate omnis. Earum voluptate non molestias porro magni praesentium, ipsa, pariatur ducimus qui hic, ab quae.</p>
          </article>
      </div>
      <aside class="sidebar">
          <div class="widget">
            <ul>
              <li><a href="">lastest articles</a></li>
              <li><a href="">lastest articles</a></li>
              <li><a href="">lastest articles</a></li>
            </ul>
          </div>
      </aside>
    </div>

    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    

  </body>
</html>

              
            
!

CSS

              
                body, html{ font-family: "Source Sans Pro"; background: #eee}

/*--------------------------
Layout
--------------------------*/

a{color:#21aabd;}

.container{max-width: 1200px; margin:0 auto;background: #fff}
.header{padding:20px;background: #333;}
.header__logo{float:left;color:#fff; text-decoration: none;}
.header__menu{float: right;padding:0;margin:0;list-style-type: none;}
.header__menu__item{display: inline-block;}
.header__menu__item a{padding: 5px 10px; color:#fff;text-decoration: none;}

.header__icon-bar{display: none;}
.header__icon-bar span{display: block;background-color: #fff; height: 2px; width: 23px;margin-bottom:5px}

.main-title{padding:50px 20px; text-align: center;background:#21aabd; color:#fff;margin: 0;font-weight: 300;font-size: 50px;}

.content{width: 70%;float: left;}
	.post{padding:40px; border-bottom: 1px solid #eee;}

.sidebar{width:30%;float: left;}
	.widget{padding:40px;}
	.widget ul{padding: 0;list-style-type: none;}
	.widget ul li a{text-decoration: none;display: block;border-bottom: 1px solid #eee;padding:10px 15px}



/*--------------------------
Tablet
--------------------------*/

@media (max-width: 998px) {


}


/*--------------------------
Smartphone
--------------------------*/

@media (max-width: 767px) {

	/*header & menu */
	.header__logo{margin-bottom:20px;}
	.header__menu{width:100%;height: 0;overflow: hidden;
		-webkit-transition: all 0.3s ease-out;
						transition: all 0.3s ease-out;
	}
	.header__menu__item{display: block;}
	.header__menu__item a{display: block;padding:10px 15px; border-bottom:1px solid #666;}

	.header__icon-bar{float: right;display: block;}
	.show-menu{height:300px;overflow: auto;}

	/* content layout */
	.main-title{font-size: 32px;}
	.content,
	.sidebar{width:100%;}



}


.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
	}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */

              
            
!

JS

              
                 $(document).ready(function(){

      $(".header__icon-bar").click(function(e){
         $(".header__menu").toggleClass('show-menu');
         e.preventDefault();
      });

    });
              
            
!
999px

Console