Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="mark">NAMECARD</div>
<div class="namecard">
  <h2>吳哲宇
  <span>(Che-Yu Wu)</span>
  </h2>

  <h5>墨雨設計-設計師</h5>

  <hr>
  <p>創立墨雨設計,從平面設計/動畫玩到網頁前後端開發,致力於將Motion Graphic加入互動性精神創造新型態的網頁體驗。</p>
  <div class="circle circle1"></div>
  <div class="circle circle2"></div>
</div>
<h3 class="page_title">動畫網頁課程範例ㄧ-名片</h3>
              
            
!

CSS

              
                *{
/*   border: solid 1px; */
  font-family: 微軟正黑體;
  position: relative;
}
html,body{
  width: 100%; height: 100%;
  padding: 0px; margin: 0px;
}

body{
  background-color: #d1d1d1;
  border-top: solid 20px #f24;
  border-bottom: solid 20px #f24;
  
  box-sizing: border-box;
  overflow: hidden;
}

.namecard{
  width: 350px; height: 200px;
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
  background-color: #eee;
  
  letter-spacing: 1px;
  font-weight: 100;
  
  color: #666;
  
  overflow: hidden;
  border: solid 1px rgba(0,0,0,0.15);
  border-radius: 6px;
  
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}
.namecard h2{
  font-size: 25px;
  font-weight: 700;
}
.namecard h2 span{
  font-size: 12px;
}
.namecard h5{
  color: #f24;
  font-weight: 500;
}
.namecard p{
  font-size: 12px;
  line-height: 22px;
}
.circle{
  width: 100px; height: 100px;
  border-radius: 100%;
  position: absolute;
}
.circle1{
  right: 100px;
  bottom: -60px;
  background-color: #f24
}
.circle2{
  width: 60px; height: 60px;
  right: -30px;
  top: -30px;
  border: solid 3px #f24;
}
.page_title{
  text-align: center;
  color: #555;
  font-weight: 500;
}
.mark{
  font-size: 300px;
  position: absolute;
  bottom: 100px;
  font-weight: 100;
  color: rgba(0,0,0,0.035);
}
              
            
!

JS

              
                
              
            
!
999px

Console