What is the best and easiest way to vertically center text that's next to an image in html? Needs to be browser version/type agnostic. A pure html/CSS solution.
Html – How to vertical center text next to an image in html/css
csshtml
Related Question
- Html – How to align content of a div to the bottom
- Html – How to give text or an image a transparent background using CSS
- Css – How to disable text selection highlighting
- Html – How to style a
- Css – How to vertically align an image inside a div
- Javascript – Is it possible to apply CSS to half of a character
Best Solution
This might get you started.
I always fall back on this solution. Not too hack-ish and gets the job done.
EDIT: I should point out that you might achieve the effect you want with the following code (forgive the inline styles; they should be in a separate sheet). It seems that the default alignment on an image (baseline) will cause the text to align to the baseline; setting that to middle gets things to render nicely, at least in FireFox 3.