cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="page-wrapper">
  <header class="main-header">
    <h1><a href="#">Unlimited Power</a></h1>
    <ul>
      <li><a href="#">Link 1</a></li>
      <li><a href="#">Link 2</a></li>
      <li><a href="#">Link 3</a></li>
      <li><a href="#">Link 4</a></li>
    </ul>
  </header>
  
  
  <div class="main-content grid-container">
    
    <div class="grid-100">
      <h1>The key to long lasting change is to raise your standards!</h1>
    </div>
    
    <div class="grid-25">
      <img src="https://pbs.twimg.com/profile_images/540248015571660800/9qXSC-X9.png" class="img-responsive" alt="" />
    </div>
    
    <article class="grid-75">
      <h2>By Anthony Robbins</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Culpa nam nemo fuga deserunt, similique ducimus et quos voluptates, mollitia enim saepe inventore tempora quas at minima distinctio vitae tempore id.</p>
      <p>Cheesecake chocolate bar gingerbread icing dragée jujubes pie sweet tiramisu. Dessert sweet roll icing cotton candy. Gummi bears caramels caramels sugar plum marzipan wafer. Dragée halvah candy canes brownie jelly-o gummi bears wafer brownie halvah. </p>
<p>Chocolate cake candy canes brownie pudding gummies cake gummi bears dessert cake. Liquorice cake topping chupa chups. Candy jelly beans soufflé. Bonbon chupa chups bonbon cotton candy gingerbread candy canes jelly.</p> 
    </article>
    
     
    
    
    
     
  </div><!-- grid-container -->
  
  
  <footer class="main-footer">
    <p>&copy; 2016 - Unlimited Power</p>
  </footer><!-- main-footer -->
  
  
</div>
            
          
!
            
              //Globals ......
  
//-------------- Decoration styling --------------
//-------------- Decoration styling --------------
//-------------- Decoration styling --------------
*{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

	/* Adding some smooth transition */
	-webkit-transition: all 0.3s ease-out;  
	-moz-transition: all 0.3s ease-out;
	-ms-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}

body{
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	line-height: 1.25em;
}

h1{
  font-size: 3em;
}

.img-responsive{
  max-width: 100%;
  height: inherit;
}
.main-header{
  padding: 2em;
  background: #EA1D62;
  // overflow: auto;
  display: flex;
  h1{
    font-size: 2em;
    a{ text-decoration:none; }
  }
  a{
    color: #fff;
  }
  ul{
    margin-left: auto;
    li{
      display:inline-block;
      padding:0 1em;
    }
  }
}

.main-content{
  margin-top: 30px;
  h1{ 
    line-height: 1em;
    font-size: 2.2em;
    margin-bottom: 30px;
  }
  article{
    column-count: 3;
    h2{
      color: #EA1D62;
      margin-bottom: 15px;
      font-size: 1.3em;
    }
  } 
}

.main-footer{
  background: #222;
  padding: 2em;
  color: #999;
  text-align: center;
}
//-------------- Decoration styling --------------
//-------------- Decoration styling --------------
//-------------- Decoration styling --------------






//-------------- Flexbox Layout --------------
//-------------- Flexbox Layout --------------
//-------------- Flexbox Layout --------------
.page-wrapper{
  display: flex;
  flex-direction: column; //place direct children in a column
  min-height: 100vh; //fill the entire layout
}

.main-content{
  flex-grow: 1; //grow to fill the layout empty space relative to the other components
}
//-------------- Flexbox Layout --------------
//-------------- Flexbox Layout --------------
//-------------- Flexbox Layout --------------


 





            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console