cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-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.

            
              .row
  p.center
    b.ng NG ie11 img un available max-width!
    br
    | display: table
  div.wrap
    div.table
      div.cell
        img(src="http://dummyimage.com/300x300/123/def")

.row
  p.center 
    b.ok NG ie11 img available max-width!
    br
    | display: table
    br
    | table-layout: 
    b fixed
  div.wrap
    div.table.fixed
      div.cell
        img(src="http://dummyimage.com/300x300/123/def")

.row
  p.center 
    b.ng NG ie11 img un available max-width!
    br
    | table-cell inside div
    br
    small (width:100% or width don't set)
  div.wrap
    div.table
      div.cell
        div.inner 
         img(src="http://dummyimage.com/300x300/123/def")
            
          
!
            
              img
  max-width: 100%
  heoght: auto
.wrap
  margin: 0 auto 1em
  border: 2px solid #73bfc3
  width: 200px
  height: 200px
  overflow: hidden

.table
  display: table
  width: 100%
  height: 100%  
  .cell
    display: table-cell
    width: 100%
    height: 100%

.table
  &.fixed
    table-layout: fixed
  
.inner
  display: block
  width: 100%
  
div, img
  margin: 0
  padding: 0
  vertical-align: bottom

.center
  text-align: center
  height: 4.5em
  
.ng
  color: #e3010f
.ok
  color: #8ab734

.row
  float: left
  width: 33.333%
  box-sizing: border-box
            
          
!
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