Reply to Re: Sentance or Caption Under Picture

Your name:

Reply:


Posted by dorayme on 11/21/06 01:38

In article <D5CdndUj3_HZyf_YnZ2dnUVZ_v2dnZ2d@giganews.com>,
Jim Moe <jmm-list.AXSPAMGN@sohnen-moe.com> wrote:

> Gιrard Talbot wrote:
> >> I have never had any trouble making web pages & overcoming a few html
> >> challenges along the way. But I cannot figure out how to center a
> >> sentance or title under a picture. Do I need to use <caption> within
> >> the <table> tag? Thanks.
> >>
> > My recommendation:
> > <p style="text-align: center;"><img src="..." width="..." height="..."
> > alt="..."><br>Your sentence... </p>
> >
> For the caption to center properly the <p> must be given the same width
> as the <img>.

Assuming the OP should not use a table setting:

A paragraph may not be the right way to go if it is not a
paragraph in the first place and just styled to get the text
aligned under the pic. A div could be one way to go, your point
being still good then, width needs setting. Other way to go:

<div style="width: 200px;"><img style="width:
200px;..."><br>Caption</div>

To <p> just the caption would be somewhat overkill, it is hardly
a paragraph anyway.

--
dorayme

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация