I’m using ul/li to create a multi column gallery view of a wordpress category. But all rows except the first gets a left margin..
I can’t see what i’m doing wrong!
http://spirit.no/category/musikkanmeldelser/
Do I have solve this with a for loop?
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.
There is no margin on the first list item because of a style that applies to the
:first-childof that container. You can remove the margin after every third list item withThis will display your list items in three columns, as I assume you intend.