Posted by Gιrard Talbot on 11/21/06 01:03
forex10@yahoo.com wrote :
> Hello,
> 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.
>
> Joe L.
No. Using a table for that is misusing table: it's bad semantic.
My recommendation:
<p style="text-align: center;"><img src="..." width="..." height="..."
alt="..."><br>Your sentence... </p>
For 2 examples:
http://www.mozilla.org/rhino/scriptjava.html#liveconnect
http://www.mozilla.org/rhino/scopes.html#namelookup
More info:
Interactive demo on CSS horizontal alignment and horizontal formating
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/HorizontalAlignment.html
GΓ©rard
--
remove blah to email me
Navigation:
[Reply to this message]
|