I’m experimenting with a design. It seems I can’t get my CSS right. I have a horizontal list with a list in each of it’s list items. The nested list doesn’t seem to behave properly. What am I doing wrong here?
The nested list doesn’t have the squared list type, and the margin is all wrong.
Several prolems:
1) As mentioned by @bfavaretto, you can’t have multiple elements with the same ID
2) You aren’t closing your “P” tags. Closing tags have a slash (</p>)3) You are using display: inline on an element which will contain block elements. This is
invalidnot good practice and will likely give you problems. Use inline-block instead:Edit: Tip – you can use special “child” selectors to only select immediate children of an element. http://jsfiddle.net/ryanwheale/F3cqD/
And these styles