[thelist] captions for photos

Ben Henick persist1 at io.com
Fri Apr 19 18:23:01 CDT 2002


On Fri, 19 Apr 2002, John Corry wrote:

> <table>
> 	<tr>
> 		<td><p>text here</p></td>
> 		<td><img tag><br>caption</td>
> 	</tr>
> </table>
>
> That sucks! I don't need the paragraphs and images in a table and the only
> reason I'm doing it that way is to make the caption render underneath the
> photo, not inline with the rest of the <p>.
>
> I really, really want clean, well formed documents and to only use tables
> for displaying tabular data. So, how can I reproduce this layout without
> relying on tables?

If I understand you properly, it would appear that you're looking to apply
float: left and clear: left to all of your text (the first of the two
cells).

You may, however, need to assign position: relative to those same text
elements in order that you can successfully specify width for Netscape 4.
(If that works; I've always floated images on the left in order to avoid
having to test that.)

If you don't have to worry about Netscape 4, so much the better.

That's the general idea.  Accounting for your entire layout may require
element nesting or other whiz-bang to get everything working properly.


--
Ben Henick
Web Author At-Large              Managing Editor
http://www.io.com/persist1/      http://www.digital-web.com/
persist1 at io.com                  bmh at digital-web.com
--
"Are you pondering what I'm pondering, Pinky?"
"I think so, Brain, but... (snort) no, no, it's too stupid."
"We will disguise ourselves as a cow."
"Oh!" (giggles) "That was it exactly!"




More information about the thelist mailing list