I want to have a heading on one side and some smaller text floating beside it sharing the same baseline.
However the paragraph always floats up to be inline with the top of the heading rather than the bottom, which is where I’d like it. I know I could solve this with margin etc, but Im wondering if there’s a straightforward solution that I wouldn’t have to rearrange if the header changes size.
I’ve tried it with the H1 floating, and switched places with the p, and a bunch of other things… like I said just wondering about a straightforward way to set this up…
I suppose I could make them both part of the same element and inline, but one really is the header…
why not just try giving the P and the H1 equal line heights? Or if you are expecting the P to be multiple lines, padding the top based on an equivalent EM value of the H1?
I may do the line-height in the end.
I was just mostly wondering if there was a way to do it without adding extra divs and not relying on the height of the H1 not changing, but it looks like it’ll be one or the other.