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

              
                ul.relative-group
    li.b1 1
    li.b2 2
    li.b3 3
    li.b4 4
    li.b5 5
    li.b6 6
    li.b7 7
    li.b8 8
    li.b9 9
    li.b10 10
    li.b11 11
    li.b12 12
    li.b13 13
    li.b14 14
    li.b15 15
    li.b16 16
    li.b17 17
    li.b18 18
    li.b19 19
    li.b20 20
    li.b21 21
    li.b22 22
    li.b23 23
    li.b24 24
    li.b25 25
    li.b26 26
    li.b27 27
    li.b28 28
    li.b29 29
    li.b30 30
    li.b31 31
    li.b32 32
    li.b33 33
    li.b34 34
    li.b35 35
    li.b36 36
    li.b37 37
    li.b38 38
    li.b39 39
    li.b40 40
    li.b41 41
    li.b42 42
    li.b43 43
    li.b44 44
    li.b45 45
    li.b46 46
    li.b47 47
    li.b48 48
    li.b49 49

              
            
!

CSS

              
                
.b25{
	position: absolute;
	left: 10px;
	top: 20px;
	background-color: rgba(100, 0, 0,0.8);
    color: #fff;
}

.relative-group{
    position: relative;
}


// (以下可忽略))

.relative-group{
	width:15rem;
    margin: auto;
    outline: 1px solid blue;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around
}
ul.relative-group li{
    text-align: center;
    line-height: 2rem;
    width:2rem;
	height:2rem;
	border:1px solid red;
}
              
            
!

JS

              
                
              
            
!
999px

Console