The best way to vertical align texts in list items in the center??? I want to (and kind of need to) vertical align texts in list items in the center while the height (20px, 30px, 40px, etc.) is fixed. Using vertical-align does not seem to work (Why?). So, how can I do this? Also what's the best way to do this?
Vertical align should be used on inline elements (inputs, buttons, etc) in regards to the block level element that holds them. For vertically aligning text that's directly in a block level element, I would suggest line-height.