I need to align the baseline of some text with a baseline in an adjacent logo. Say the logo baseline is 30px from the top of the image, which I have floated to the left. Is it possible to accurately position the baseline of my text to also be 30px down from the top of the image?

To clarify: in both cases it's the baseline I'm interested in not the bottom. Baseline of text in image should be aligned with *baseline* of adjacent text. Thanks for trying though. — Rowan Nairn about 9 years ago

I like your align=baseline idea. There's something in that. Maybe I can chop up the image and use that somehow. — Rowan Nairn about 9 years ago

Could you show me in image of what you mean? I don't think I know what you mean :/ — Marko Ivanovski about 9 years ago

Here's how I did it. I broke the image up into a top and bottom half at the baseline of the logo. The top half I align to the baseline of the text. The bottom half I position absolutely so it's in the right place to match up with the top.

Rowan, looks like your answer should work, but breaking up the image has its own drawbacks, of course. Another approach would be to make the text a block-level element and set the height of the text to align it to the pseudo-baseline in the image.