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. 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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                
<img src="https://upload.wikimedia.org/wikipedia/zh/a/ae/Pui_Ching_MACAU.jpeg" alt="Logo">

<a href="">澳門培正中學(Pui Ching Middle School)</a>

<div>
  1月1日下午10:57
</div>

<img src="https://scontent-hkg3-2.xx.fbcdn.net/v/t1.0-9/81175777_3227334730616693_4277485597989273600_o.jpg?_nc_cat=111&_nc_ohc=gdwtcxqeN0MAQmQ1PvJ4O7bAaWFmN05psxgVzfMSzTXK9ZqLjaloGh3aw&_nc_ht=scontent-hkg3-2.xx&oh=d09f85abd8195657e11df8813bb9b10e&oe=5E9AC298" alt="获奖图片">
  
<div>
  2019年12月31日至2020年1月1日,由陝西省學聯主辦的第六屆中學生商業挑戰賽在西安舉行。我校由林奕奇老師帶隊,李棟老師指導,四名高二善班學生參賽。比賽模... 
</div>

<a href="">查看更多</a>
  
<a href="">讚</a>
<a href="">留言</a>
<a href="">分享</a>
<a href="">儲存</a>

<img src="https://scontent-hkg3-2.xx.fbcdn.net/v/t1.0-9/81644269_1274357196082830_3502697403578843136_n.jpg?_nc_cat=109&_nc_ohc=LJ4tfP-HV4MAQk6QACel3TOJ4Vt6JQeMqBSWkqM3SgMfGyem0sH_67_CA&_nc_ht=scontent-hkg3-2.xx&oh=9d95f2299a8c49e681f210362690e739&oe=5EA9F152" alt="大合照">
  
<img src="https://scontent-hkg3-2.xx.fbcdn.net/v/t1.0-9/81038178_1274357199416163_2280183203845111808_n.jpg?_nc_cat=111&_nc_ohc=B_kUQMgvh2MAQlWIULbFt6OS6uwYD7koPamnAmQcahUCg4JfAW4fBE71w&_nc_ht=scontent-hkg3-2.xx&oh=c071e9d127147cabddb018c2f75c587b&oe=5E695231" alt="合照">
    
<img src="https://scontent-hkg3-2.xx.fbcdn.net/v/t1.0-9/81933843_1274357499416133_8191245679994077184_n.jpg?_nc_cat=111&_nc_ohc=wsKhuu68uEYAQldGKeFHV6fTUGjwi7Z5m1pGkHYMrBg-jNSTnyzxJOayw&_nc_ht=scontent-hkg3-2.xx&oh=01a3d74a4e90e7f61b386e33d47fb830&oe=5EB0D2BA" alt="機場">
  
<div>
  過去的週末,本校劍擊隊在梁主任、龍教練和何教練的指導和帶領下完成了2019年最後一場劍擊比賽。為了以最佳狀態參加本次比賽,隊員們在聖誕節期間勤奮訓練。在「2019蘇州市擊劍聯賽暨長三角擊劍公開賽」... 
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  background-color: #e9ebee;
  padding-bottom: 10em;
  color: #222;
}

img {
  display: block;
  max-width: 500px;
  padding: 2px;
}

.main {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.secondary {
  width: 250px;
  height: 250px;
  object-fit: cover;
}


a {
  cursor: pointer;
  text-decoration: none;
}

.box {
  display: block;
  padding: 1em;
}

.logo {
  width: 96px;
  float: left;
  padding: 1em;
}

.bold {
  font-weight: bold;
}

.blue {
  color: #385898;
}

.gray {
  color: #999;
}

.red {
  color: red;
}

.small {
  font-size: smaller;
}

.larger {
  font-size: larger;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.border-top {
  border-top: 1px solid #ccc;
}

.border-left {
  border-left: 1px solid #ccc;
}

.border-bottom {
  border-bottom: 1px solid #ccc;
}

.border-right {
  border-right: 1px solid #ccc;
}

.row {
  overflow: auto;
}

.row .col {
  float: left;
}
.row .col-1 {
  width: 25%;
}
.row .col-2 {
  width: 50%;
}
.row .col-3 {
  width: 75%;
}
.row .col-4 {
  width: 100%;
}

.card {
  width: 500px;
  margin: 1em auto;
  border: 1px solid #dddfe2;
  border-radius: 3px;
  background: #fff;
}



              
            
!

JS

              
                
              
            
!
999px

Console