Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * "horizontal" list -first primitive :nth-child
- */
- body {
- background: #f06;
- background: linear-gradient(45deg, #f06, yellow);
- min-height: 100%;
- }
- ul.one,ul.two, ul.three {
- float: left;
- width:200px;
- display:inline-block;}
- ul li:nth-child(2),
- ul li:nth-child(3n),
- ul li:nth-child(5),
- ul li:nth-child(8)
- {
- display:none
- }
Add Comment
Please, Sign In to add comment