cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

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.

            
              <!-- Sidebar container -->
<aside class="site-sidebar">
  
  <h3>Sidebar</h3>
  
  <p>Lorem ipsum dolor sit amet, ferri vidisse nam eu, ad nec copiosae mnesarchum vituperatoribus. Te brute dicunt sea, ut vis omnium menandri, ut sumo aliquam has. Eum aperiam interpretaris at, sea et recusabo expetenda, omnis tibique mea no. Pri suas partem ea, ius sonet numquam offendit cu, ad simul admodum pri. Eum cu unum choro albucius.</p>

<p>Eu integre accusata prodesset est, sed te impetus gubergren conceptam, ex sed wisi nostrum ocurreret. Esse velit omittantur ius te, alii dissentias ei vis. At sed unum veritus fabellas. Te volutpat appellantur duo. Ad natum fuisset intellegebat eam, causae invidunt usu id, et vis impetus appetere.</p>
</aside>

<!-- Main content container -->
<article class="site-content">

  <figure class="alignfull">
    <img src="https://cldup.com/m7_aXlDCXw.jpg" alt="">
  </figure>

  <p>Full-wide image above 👆</p>

  <p>Ea veniam homero eam. Ex inimicus molestiae cum, debet scaevola at eos. Vis assum veritus ut, has ea nostrud accusata, offendit appareat comprehensam ea pro. Ad quo quem veritus appellantur, te est quas phaedrum, eum alia habeo ad. Ei est erroribus
    imperdiet, omnis dicam propriae sed no. His vitae oratio fierent ne, cu duo tota eligendi, electram rationibus in qui.</p>

  <figure class="alignleft">
    <img src="https://cldup.com/yPKF2vjugC.jpg" alt="">
    <figcaption>Image caption.</figcaption>
  </figure>

  <p>Est quis reque cetero ad. Sea id autem nominavi deseruisse. Veniam qualisque definitionem pri id, ea autem feugiat delenit ius, mei at lorem affert accumsan. Dicat eruditi cu est, te pro dicant pericula conclusionemque, ei vim detracto euripidis intellegam.
    Eius postea volumus mei ad.</p>

  <p>Prima ridens denique his te, ferri illum volumus an his. Eu vel dicat homero qualisque, vitae regione deserunt vis ei. Graeci incorrupte liberavisse no mea, saepe voluptaria usu ex, vis dicant euismod id. At dolor reprimique eos, quo altera detraxit
    moderatius id. Quo iudico utinam eu, ad alia munere mel.</p>

  <figure class="alignright">
    <img src="https://cldup.com/lUUQPv6w9c.jpg" alt="">
  </figure>

  <p>Lorem ipsum dolor sit amet, ferri vidisse nam eu, ad nec copiosae mnesarchum vituperatoribus. Te brute dicunt sea, ut vis omnium menandri, ut sumo aliquam has. Eum aperiam interpretaris at, sea et recusabo expetenda, omnis tibique mea no. Pri suas partem
    ea, ius sonet numquam offendit cu, ad simul admodum pri. Eum cu unum choro albucius.</p>

  <p>Eu integre accusata prodesset est, sed te impetus gubergren conceptam, ex sed wisi nostrum ocurreret. Esse velit omittantur ius te, alii dissentias ei vis. At sed unum veritus fabellas. Te volutpat appellantur duo. Ad natum fuisset intellegebat eam,
    causae invidunt usu id, et vis impetus appetere.</p>

  <p>Wide image below 👇</p>

  <figure class="alignwide">
    <img src="https://cldup.com/kAIpBuzEXf.jpg" alt="">
  </figure>

  <p>Est quis reque cetero ad. Sea id autem nominavi deseruisse. Veniam qualisque definitionem pri id, ea autem feugiat delenit ius, mei at lorem affert accumsan. Dicat eruditi cu est, te pro dicant pericula conclusionemque, ei vim detracto euripidis intellegam.
    Eius postea volumus mei ad.</p>

  <p>Prima ridens denique his te, ferri illum volumus an his. Eu vel dicat homero qualisque, vitae regione deserunt vis ei. Graeci incorrupte liberavisse no mea, saepe voluptaria usu ex, vis dicant euismod id. At dolor reprimique eos, quo altera detraxit
    moderatius id. Quo iudico utinam eu, ad alia munere mel.</p>

</article>
            
          
!
            
              /**
 * Base styles
 */

body {
  margin: 0;
  font-size: 14pt;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

p {
  margin: 2em 0;
}

figure {
  margin: 0;
  text-align: center;
  
}

img {
  max-width: 100%;
  height: auto;
}


/**
 * Sidebar and main column
 */

.site-content {
  width: 70%;   /* Could be a pixel value too */
  border-right: 1px solid #eee;
}

.site-sidebar {
  width: 30%;
  float: right;
  background: #fefefe;
  height: 100%;
  padding: 20px;
}


/**
 * Fullwide CSS
 */

/* Unconstrained main colum */
.site-content > *:not( .alignwide ):not( .alignfull ) {
  max-width: 50%;   /* Could be a pixel value too: this is the one that decides the width of the text */
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  display: block;
  text-align: center;
}

.alignwide {
  max-width: 75%;   /* Could be a pixel value too */
  margin-left: auto;
  margin-right: auto;
}

/* We float the img inside the figure that has .alignleft applied.
   This makes the .alignleft element have the same main column width as text.
   What makes the float work is that the figure collapses into a zero height element */
.alignleft img {
  display: block;
  float: left;
  width: 60%;
  margin-right: 2em;
}

.alignright img {
  display: block;
  float: right;
  width: 60%;
  margin-left: 2em;
}

.alignright figcaption,
.alignleft figcaption {
  font-size: 75%;
  color: gray;
  width: 60%;
  margin-bottom: 1em;
}

.alignleft figcaption {
  float: left;
  clear: left;
  margin-right: 2em;
}

.alignright figcaption {
  float: right;
  clear: right;
  margin-left: 2em;
}
            
          
!
999px
Loading ..................

Console