How do I get inline tags to wrap nicely?
Try using display: inline-block instead. It gives you the functionality of an inline element, but you can apply margins and padding to it just like a block-level element.