Help support TMP


"on page layout" Topic


5 Posts

All members in good standing are free to post here. Opinions expressed here are solely those of the posters, and have not been cleared with nor are they endorsed by The Miniatures Page.

For more information, see the TMP FAQ.


Back to the Webmasters Plus Board


288 hits since 12 Jul 2010
©1994-2014 Bill Armintrout
Comments or corrections?

jgawne12 Jul 2010 5:08 p.m. PST

So I finally decided to try and put a few chapters of my (heavily illustrated) book on the US Army in WW1 on the web, and have run into a quandry.

There are normally about 2 or photos or other graphics (maps, etc.) per page (The style I have done a few printed books in). Now while there is no problem wrapping the text, I cannot for the life of me figure a reasonable way to have a caption to the photo on a basic web layout.

I suppose I could make a two cell table where I wanted it- one for the photo- the other for the caption, but then I can't flow the text around it.

I considered something like having the caqptiona ppear when you moused over the image, which is kind of cool but I can't make it work.

Am I missing something?

napthyme Sponsoring Member of TMP12 Jul 2010 6:01 p.m. PST

its been ages since I tried to do one by hand, but if I remember right there is a <tag> or <alt> code you add in with the pictures for alt text to appear with each mouse over.

I used an HTML book for dummies which explained all of that in easy detail.

Ran The Cid13 Jul 2010 5:48 a.m. PST

Can you wrap the photo and the caption text in the same div? Then let the text flow around the div?

Populating the alt text in the photo description should pop up the text on mouse over, but that function might be browser dependent. I'm sure there is a jquery code set that would accomplish the pop up for all browsers.

SpaceCudet13 Jul 2010 6:34 a.m. PST

Something like:


<div style="float:right"><img src="" width="200" height="200" />
<br/>
<span style="font-weight:bold">A nice caption</span>
</div>

should work

Personal logo RavenscraftCybernetics Supporting Member of TMP13 Jul 2010 7:08 a.m. PST

Or you edit the photos to include the captions. then they layout wont matter
ymmv

Sorry - only trusted members can post on the forums.