Sent by Jcollicott on 4 June 2002 10:10
maarten [EMAIL-REMOVED]> wrote:
>Hi.
>
>You want to have your div vertically alligned to the middle?
[snip]
Hi maarten,
Please forgive me if I'm misreading your post, but my goal wasn't to
vertically align the <div> within the document body, but to vertically
align a row of text within a <div> container with the <div> having a set
height greater than the line height of the text within.
I went off of part of Caio Chassot's advice, and used padding and margins
to accomplish what I wanted to do in this instance, but the one thing I
don't like about this method of implementation is that theoretically it is
specific to each inline item I wish to vertically align in a container
(assuming height's are different).
I guess what I'd like to know is if there is a property, or combination of,
that I can generically apply to vertically align the inline element (I'm
thinking of the HTML attribute 'valign' used on <td>'s, etc) within a block
container, instead of getting specific about the heights, etc.
Thanks,
Jess Collicott