Your code is correct. The problem is the * in the css. Particularly the padding. With
* {
margin: 0;
padding: 0;
}
you've reset the padding of all elements to 0. By default, the browser adds padding-left to the second list. However, you've reset the padding to 0, so the list doesn't get the padding. Delete
padding:0; from the * element css and you'll see your list get padded properly.
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
Offline 665 posts
since Nov 2007