Skip to content

Instantly share code, notes, and snippets.

@hidoos
Forked from anonymous/dabblet.css
Created January 14, 2014 15:27
Show Gist options
  • Save hidoos/8420069 to your computer and use it in GitHub Desktop.
Save hidoos/8420069 to your computer and use it in GitHub Desktop.
/**
* The first commented line is your dabblet’s title
*/
:root {
background-color: #6374AB;
padding: 50px;
}
ul{
background:yellow;
margin:0;
padding:0;
}
li{
margin:10px;
padding:10px;
background:#ccc;
list-style:none;
}
li:first-child{
color:red;
margin-top:20px;
}
li.demo{
border:2px dashed blue;
padding:20px;
}
<!-- content to be placed inside <body>…</body> -->
<ul>
<li>一个列表用来测试margin</li>
<li class="demo">
一个列表用来测试margin
</li>
<li>测试一下margin</li>
</ul>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment