Skip to content

Instantly share code, notes, and snippets.

@weslly
Created May 20, 2013 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weslly/5609764 to your computer and use it in GitHub Desktop.
Save weslly/5609764 to your computer and use it in GitHub Desktop.
:first-child alternative (not really)
/* :first-child alternative (not really) */
ul {
list-style: none;
margin: 0;
}
li {
float: left;
width: 100px;
height: 50px;
}
ul li + li {
border-left: 1px solid #000;
}
<ul>
<li>1st</li>
<li>2nd</li>
<li>3rd</li>
<li>4th</li>
<li>5th</li>
</ul>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment