alternating text/image rows

alternating text/image rows

am 04.11.2007 01:39:49 von scenic_man

Here's one for you:
I have a bunch of images (say, half a dozen)
that I want to place vertically down a page.
I want to put the captions beside them.
(Something of an aside, the captions contain links to further explanations.)
What I'd like to do is alternate them this way:
+-------+
| image | <-- caption
+-------+ +-------+
caption --> | image |
+-------+ +-------+
| image | <-- caption
+-------+ +-------+
caption --> | image |
+-------+ +-------+
| image | <-- caption
+-------+ +-------+
caption --> | image |
+-------+
Keep in mind that some images may be taller or wider than others,
and that while some captions may be only a single line, others may not.
Anyone have an elegant way to do that?

Re: alternating text/image rows

am 04.11.2007 01:57:19 von Adrienne Boswell

Gazing into my crystal ball I observed MangroveRoot
writing in news:px8Xi.331$FO.148@trndny01:

> Here's one for you:
> I have a bunch of images (say, half a dozen)
> that I want to place vertically down a page.
> I want to put the captions beside them.
> (Something of an aside, the captions contain links to further
> explanations.) What I'd like to do is alternate them this way:
> +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+
> Keep in mind that some images may be taller or wider than others,
> and that while some captions may be only a single line, others may
> not. Anyone have an elegant way to do that?
>

I would say this could be tabular data, where the headers would be image
and data describing the image. Use a table.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Re: alternating text/image rows

am 04.11.2007 02:37:11 von cfajohnson

On 2007-11-04, MangroveRoot wrote:
>
>
> Here's one for you:
> I have a bunch of images (say, half a dozen)
> that I want to place vertically down a page.
> I want to put the captions beside them.
> (Something of an aside, the captions contain links to further explanations.)
> What I'd like to do is alternate them this way:
> +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+
> Keep in mind that some images may be taller or wider than others,
> and that while some captions may be only a single line, others may not.
> Anyone have an elegant way to do that?



--
Chris F.A. Johnson, webmaster
============================================================ =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

Re: alternating text/image rows

am 04.11.2007 05:06:49 von Bone Ur

Well bust mah britches and call me cheeky, on Sun, 04 Nov 2007 01:37:11
GMT Chris F.A. Johnson scribed:

>> I have a bunch of images (say, half a dozen)
>> that I want to place vertically down a page.
>> I want to put the captions beside them.
>
>

I like that but can you get the captions to vertically-center and still
retain all floats? (I can't think of a sure way offhand.) I did it once
without using floats (or tables) but don't recall how.

--
Bone Ur
Cavemen have formidable pheromones.

Re: alternating text/image rows

am 04.11.2007 09:04:45 von jkorpela

Scripsit Adrienne Boswell:

>> I have a bunch of images (say, half a dozen)
>> that I want to place vertically down a page.
>> I want to put the captions beside them.
[...]
>> What I'd like to do is alternate them this way:

The right answer is "stop wanting that". Such a setting is confusing and
pointless. There's enough trouble in making users see the intended
association between a caption and his image, or between an image and her
caption, whichever wording expresses your feelings better. So there's no
reason to _intentionally_ create confusion and to force the eye to
participate in silly walks.

> I would say this could be tabular data, where the headers would be
> image and data describing the image. Use a table.

In the alternating scenario, it's hardly a table logically. What's a column
consisting of alternating images and texts with no connection between an
image and the text below or above it? What would you use as column headers?
(Not all data tables need column headers, but a table for which you could
not possibly write column headers that make sense is most probably not
tabular data.)

In a scenario with one column of images and another column of captions, each
associated with the image on the same row, we have tabular data - and a

element may well be the best approach.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Re: alternating text/image rows

am 04.11.2007 11:59:50 von Patrice

"MangroveRoot" wrote in message
news:px8Xi.331$FO.148@trndny01...
> Here's one for you:
> I have a bunch of images (say, half a dozen)
> that I want to place vertically down a page.
> I want to put the captions beside them.
> (Something of an aside, the captions contain links to further
> explanations.)
> What I'd like to do is alternate them this way:
> +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+
> Keep in mind that some images may be taller or wider than others,
> and that while some captions may be only a single line, others may not.
> Anyone have an elegant way to do that?

Hello all, first time post, been lurking around a week.

I suppose this is "old school" but that's how I write a lot of my letters.
Just using tables, like everybody has already suggested, is the way to get
it done.
------------------------------------------------------------ ---------------------------------------










hspace="9" border="2">
hspace="4" border="2">

_____________________________________________________

hspace can be dispensed with if align is set to right, because the color of
the text is usually set relative to the left margin. However, I find it
looks crappy when the text is jammed up next to the image when using align
set to the left, I just use 9 pixels because it's quicker than using 2
keystrokes to make a "10."

Re: alternating text/image rows

am 04.11.2007 15:00:37 von Rob_W

MangroveRoot schreef:
> Here's one for you:
> I have a bunch of images (say, half a dozen)
> that I want to place vertically down a page.
> I want to put the captions beside them.
> (Something of an aside, the captions contain links to further
> explanations.)
> What I'd like to do is alternate them this way:
> +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+ +-------+
> | image | <-- caption
> +-------+ +-------+
> caption --> | image |
> +-------+
> Keep in mind that some images may be taller or wider than others,
> and that while some captions may be only a single line, others may not.
> Anyone have an elegant way to do that?


You should visit Dan Cederholms website "Simple Bits";

What you want is described in his book Bulletproof Web design;
the website has example codes in the Publications-section.
What you're looking for is in chapter 4 of the book.

--
Rob

Re: alternating text/image rows

am 04.11.2007 17:34:49 von Adrienne Boswell

Gazing into my crystal ball I observed "Jukka K. Korpela"
writing in
news:I0fXi.247231$4L7.32357@reader1.news.saunalahti.fi:

> Scripsit Adrienne Boswell:
>
>>> I have a bunch of images (say, half a dozen)
>>> that I want to place vertically down a page.
>>> I want to put the captions beside them.
> [...]
>>> What I'd like to do is alternate them this way:
>
> The right answer is "stop wanting that".
>
>> I would say this could be tabular data, where the headers would be
>> image and data describing the image. Use a table.
>
> In the alternating scenario, it's hardly a table logically.
>
> In a scenario with one column of images and another column of
> captions, each associated with the image on the same row, we have
> tabular data - and a
>

element may well be the best approach.
>

Right... missed that part about alternating in the OP.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share