Created
May 20, 2013 00:57
-
-
Save weslly/5609764 to your computer and use it in GitHub Desktop.
:first-child alternative (not really)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* :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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li>1st</li> | |
<li>2nd</li> | |
<li>3rd</li> | |
<li>4th</li> | |
<li>5th</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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