Generally, you want to style class names instead of tags. Also, inline-block is probably creating incorrect spacing here. It's going to (inconsistently) add 4px between elements.