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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <h1>플로팅(Floating) 레이아웃</h1>

<img class="profile" src="https://goo.gl/PK8KhE" alt="">

<div class="group">
<p>float 속성을 사용해 박스를 왼쪽(left) 또는 오른쪽(right)으로 "부유"시키는 레이아웃 기법입니다. 설정 가능한 값은 다음과 같습니다.</p>

<ul>
  <li>none</li>
  <li>left</li>
  <li>right</li>
</ul>


</div>
  <p>복잡한 형태의 레이아웃을 구성하는데 필요한 핵심 속성으로 특정 요소를 떠있게, 흐르도록,부유하게 하도록 하는 속성입니다</p>
              
            
!

CSS

              
                html {
  font-size: 10px;
}
body {
  margin: 3rem;
  width: 400px;
  font: 1.4rem/1.5 Verdana, Arial, Sans-Serif;
}
h1, p {
  margin-top: 0;
  white-space: pre-line;
}

h1 {
  line-height: 1.2;
}

p {
  margin-bottom: 0.7rem;
}

ul {
  margin-top: 0.7rem;
  list-style: none;
  padding-left: 0;
}

li::before {
  content: '+ ';
  font-size: 10px;
}

.profile {
  position: relative;
  top: 4px;
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  padding: 3px;
  vertical-align: middle;
  width: 130px;
  height: auto;
}

.group {
overflow: hidden; 
}

.profile {
  float: left;
  margin-right: 15px;
}

              
            
!

JS

              
                
              
            
!
999px

Console