Posted by David Segall on 12/02/07 14:35
Ben C <spamspam@spam.eggs> wrote:
>On 2007-12-02, David Segall <david@address.invalid> wrote:
>> I have a page heading
>><http://www.profectus.com.au/ee_headingexample.html> which consists of
>> an image followed by a word and they should occupy the leftmost 25% of
>> the heading. The remainder is a background image which will fill the
>> rightmost 75%. The leftmost image has a fixed size and I want the word
>> to be vertically and horizontally centred in what remains of the
>> leftmost 25%. Currently the word, "Rendezvous" insists on being at the
>> bottom left of the remaining space. How can I reposition it? I don't
>> need to support browsers more than a couple of years old.
>
>Put vertical-align: middle on the <img> preceding the span (the one
>that's a picture of a clock).
Thanks. That's much better but it is still left aligned. How can I
centre it horizontally in the remaining space after the image?
Navigation:
[Reply to this message]
|