I have an element laid out using display: inline-block, which almost works, except that padding within the element makes the text offset by the same amount. I believe I'm experiencing the problem described over here.

What is the best way to counter this problem?

1 answer

danwellman 5600
This was chosen as the best answer

Have you tried using display:table-cell; along with vertical align..?

Answered almost 9 years ago by danwellman
  • It appears to work in IE6+7, although the background is offset in IE6. troelskn almost 9 years ago