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 id="tree">
  <li>
		<input type="checkbox"/>
		<span>Membership Gold</span>
		<ul>
			<li>
				<input type="checkbox"/>
				<span>Inkyung</span>
				<ul>
					<li><span>40 albums - 13.71 Gb</span></li>			
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Lele Wu</span>
				<ul>
					<li><span>~20 albums - 5.45 Gb</span></li>			
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Nuomeizi Mini</span>
				<ul>
					<li><span>Exclusive images & videos - 15.67 Gb</span></li>			
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Others</span>
				<ul>
					<li><span>21 albums - 4.81 Gb</span></li>			
				</ul>
			</li>      
    </ul>  
  <li>
		<input type="checkbox"/>
		<span>Membership Silver</span>
		<ul>
			<li>
				<input type="checkbox"/>
				<span>AISS</span>
				<ul>
					<li><span>64 albums - 7.45 Gb</span></li>			
				</ul>
			</li>
			<li>
				<input type="checkbox"/>
				<span>BoLoli</span>
				<ul>
					<li><span>245 albums - 60.94 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>EROONICHAN</span>
				<ul>
					<li><span>15 albums - 8.69 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>GIRLT</span>
				<ul>
					<li><span>99 albums - 40.32 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Goddes</span>
				<ul>
					<li><span>286 albums - 81.92 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>HuaYan</span>
				<ul>
					<li><span>70 albums - 15.33 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Masked Queen</span>
				<ul>
					<li><span>51 albums - 6 Gb</span></li>
				</ul>
        <li>
				<input type="checkbox"/>
				<span>MFStar</span>
				<ul>
					<li><span>399 albums - 87.33 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>MiiTao</span>
				<ul>
					<li><span>144 albums - 22.29 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>MISC</span>
				<ul>
					<li><span>79 albums - 24.39 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>MiStar</span>
				<ul>
					<li><span>313 albums - 45.33 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>MyGirl</span>
				<ul>
					<li><span>592 albums - 159.92 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>QingDouKe</span>
				<ul>
					<li><span>162 albums - 41.94 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>ROSI</span>
				<ul>
          <li>
				    <input type="checkbox"/>
				     <span>ROSI Business series</span>
				      <ul>
					    <li><span>53 albums - 3.32 Gb</span></li>
				      </ul>
			    </li>
					<li><span>287 albums - 30.25 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>TGOD</span>
				<ul>
					<li><span>491 albums - 140.95 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>TuiGirl</span>
				<ul>
					<li><span>143 albums - 36.15 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Ugirls</span>
				<ul>
					<li><span>404 albums - 193.26 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>Ugirls Number Series</span>
				<ul>
					<li><span>400 albums - 2.22 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>VN</span>
				<ul>
					<li><span>154 albums - 4.89 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>XINGYAN</span>
				<ul>
					<li><span>106 albums - 12.38 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>XiuRen</span>
				<ul>
					<li><span>2477 albums - 518.24 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>YOUMI</span>
				<ul>
					<li><span>600 albums - 152.26 Gb</span></li>
				</ul>
			</li>
      <li>
				<input type="checkbox"/>
				<span>YouWu</span>
				<ul>
					<li><span>165 albums - 23.07 Gb</span></li>
				</ul>
			</li>
			</li>
		</ul>
	</li>
</ul>
              
            
!

CSS

              
                ul{
  display:inline-block; 0position: relative; float: left; clear: left;
	margin:.25em;
	padding:0;
	background: pink;
}
ul:before{
	content:""; position: absolute; z-index: 1;
	top:.25em; right:auto; bottom:0; left: 1.75em; 
	margin: auto;
	border-right: dotted black .1em;
	width: 0; height: auto;
	0background: blue;
}
ul:after{
	content: "-"; position: absolute; z-index: 3;
	top:0; left:-.5em;
	margin:.65em; padding:0;
	width:.8em; height: .8em; 
	text-align:center; line-height: .6em; font-size: 1em;
	background: blue;
}
ul>li{
	display: block; position: relative; float: left; clear: both;
	right:auto;
	padding-left: 1em;
	width:auto;
	text-align: center; color:white;
	background: gray;
}
ul>li>input{
	display:block; position: absolute; float: left; z-index: 4;
	margin:0 0 0 -1em; padding:0;
	width:1em; height: 2em;
	font-size: 1em;
	opacity: 0;
	cursor: pointer;
}
ul>li>input:checked~ul:before{
	display: none;
}
ul>li>input:checked~ul:after{
	content: "+"
}
ul>li>input:checked~ul *{
	display: none;
}
ul>li>span{
	display: block; position: relative; float: left; z-index: 3;
	margin:.25em; padding:.25em;
	background: lightblue;
}
ul>li>span:after{
	content: ""; display: block; position: absolute;
	left:-1em; top:0; bottom:0;
	margin: auto .25em auto .25em;
	border-top: dotted black .1em;
	width: .75em; height: 0;
	
}

ul>li:last-child:before{
	content: ""; display: block; position: absolute; z-index: 2;
	top:1em; left:0; bottom:-.25em;
	width:.75em; height:auto;
	background:lightblue;
}

#tree{
	position: relative; font-family: "Georgia"; 
}
#tree:before{
	left:.5em;
}
#tree:after{
	display: none;
}

/*decoration*/
ul,ul>li:last-child:before{
	background: white;
}
ul>li{
	background: transparent;
}
ul:after{
	background: white;
	color: black;
	border:solid gray 1px;
	border-radius: .1em;
}
ul>li>span{	
	border-radius: .25em;
	color: black;
	background: white;
}
ul>li>input~span:before{
	content:""; display: inline-block;
	margin: 0 .25em  0 0;
	width:1em; height: 1em; ;line-height: 1em;
	background: url("data:image/vnd.microsoft.icon;base64,AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAAD///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8BAAAABwAAABcAAAAbAAAAGwAAABsAAAAbAAAAGwAAABsAAAAbAAAAGwAAABsAAAAbAAAAGwAAABcAAAAPAAAACQNMcIsDZJS3A2SUtwNklLcDZJS3A2SUtwNklLcDZJS3A2SUtwNklLcDZJS3A2SUtwNklLcDTHCTAAAAHwAAABEDbqSpb8Hn/4bQ7/+Fz+7/hc/u/4XP7v+Fz+7/hc/u/4XP7v+Fz+7/hc/u/4XP7v+H0PD/OpfDyQJcikX///8BA3i0m1e13/+N1vH/h9Hu/4fR7v+H0e7/h9Hu/4fR7v+H0e7/h9Hu/4fR7v+H0e7/iNHu/3jJ6e0CgL97////AQJ8uZdGrdz/l9/2/5Tb9P+U2/T/lNv0/5Tb9P+U2/T/lNv0/5Tb9P+U2/T/lNv0/5Tb9P+b4fj/JpvTnQKGyCMCf76TYL7n/4XX8v+h5vr/oOX6/6Dl+v+g5fr/oOX6/6Lo+v+l6vv/per7/6Xq+/+l6vv/puz7/2vJ68kCis9VAoLCj33P8P9px+z/r/P//63x/v+t8f7/rfH+/63x/v+Y5fj/SbLj/0my4/9JsuP/Tbbl/wKKz8UCjtZ9Ao7WfQKFx4uW3vb/Trjn/0645/9OuOf/Trjn/0645/9OuOf/Trjn/4HR8P+S2vP/ktrz/5ng9v8ChceL////Af///wECiMuHn+X5/5jf9v+Y3/b/mN/2/5jf9v+Y3/b/mN/2/5jf9v+Y3/b/mN/2/5jf9v+f5fn/AojLh////wH///8BAorPg6Pp+/+d4/n/neP5/53j+f+d4/n/neP5/53j+f+d4/n/neP5/53j+f+d4/n/o+n7/wKKz4P///8B////AQKN0oGo7f3/ouf7/6Ln+/+i5/v/ouf7/6Ln+/+i5/v/ouf7/6Ln+/+i5/v/ouf7/6jt/f8CjdKB////Af///wECj9Z9rvP//6vw/v+r8P7/q/D+/6vw/v+r8P7/q/D+/6vw/v+r8P7/q/D+/6vw/v+u8///Ao/Wff///wH///8BApHZXQKR2XsCkdl7ApHZewKR2XsCkdl7ApHZe/7+/f/19e7/6+vd//7JQf/0ti7/ApHZewKR2V3///8B////Af///wH///8B////Af///wH///8B////AQKS2ysCktt5ApLbeQKS23kCktt5ApLbeQKS2yv///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8BAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//w==");
	background-repeat:no-repeat;
	background-size:contain;
}
ul>li>input:checked~span:before{
	background-image: url("data:image/vnd.microsoft.icon;base64,AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAA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u8///j9Pv/4/T7/+r8P7/q/D+/6vw/v+r8P7/q/D+/67z//8Cj9Z9ApHZXQKR2XsCkdl7ApHZewKR2XsCkdl7ApHZewKR2Xv+/v3/+Pjz//Dw5v/p6dv//slB//S2Lv8Ckdl7ApHZXf///wH///8B////Af///wH///8B////Af///wECktsrApLbeQKS23kCktt5ApLbeQKS23kCktt5ApLbK////wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8BAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//w==");
}
/**/
              
            
!

JS

              
                
              
            
!
999px

Console