Re: Vertically aligning text next to images

Walter Ian Kaye (boo@primenet.com)
Tue, 30 May 1995 15:59:01 -0700


Message-Id: <v01510102abf150af6eb5@[198.68.46.40]>
Date: Tue, 30 May 1995 15:59:01 -0700
To: www-html@www10.w3.org
From: boo@primenet.com (Walter Ian Kaye)
Subject: Re: Vertically aligning text next to images

>What attributes can one use to determine the vertical positioning of text
>alongside inline images? For example, I'm trying to align some brief
>explanatory captions next to thumbnail images. I've aligned the image to
>the left of the page, which allows the text to run flush with the right
>side of the image. But since there's not much text, I'd like to have the
>text begin about a quarter of the way down the image rather than at the
>image's top border.
>
>Is there any elegant way to accomplish this, or must I use <br>s?


Well, depending on the size of the image relative to the text, you might
try something like:

<table>
<tr><td rowspan=4><IMG SRC="whatever">
<tr><td><td rowspan=3 valign=top>the caption
<tr><td><td><td>&nbsp;
<tr><td><td><td>&nbsp;
</table>

This is off the top of my head -- please excuse the hairs ;)


-Walter

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Walter Ian Kaye: (602) 942-6390  FoxPro/Excel Programmer; Guitarist     #
# Correspond to:   boo@primenet.com, boodlums@genie.com                   #
# BinHex files:    boo@primenet.com   WWW: http://www.primenet.com/~boo/  #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #