Is there a border-collapse:collapse alternative for lists, where the li’s are displayed as blocks with a border of 1px solid.
Is there a border-collapse:collapse alternative for lists, where the li’s are displayed as blocks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can remove the top border on all but the first list item by adding:
http://jsfiddle.net/mblase75/3h8bm/
IE8 and IE7 don’t support
:not. However, they do support:first-child, so a workaround is easy:http://jsfiddle.net/mblase75/3h8bm/4/
IE6 doesn’t support either of those, so if you’re worried about that browser, you’ll have to add a custom class (say,
.first-child) to the first element directly.