Posted by Gιrard Talbot on 11/21/06 01:28
Chris F.A. Johnson wrote :
> On 2006-11-20, 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.
>
> Style the image as a block:
>
> <http://cfaj.freeshell.org/testing/alpha.html>
I disagree. An image is an inline element, just like text nodes. So,
best is to simply use text-align for aligning inline elements.
Centring using CSS: inline content
http://dorward.me.uk/www/centre/#inline
"text-align describes how inline content of a block is aligned."
http://www.w3.org/TR/2006/WD-CSS21-20060411/text.html#propdef-text-align
also
http://www.w3.org/TR/REC-CSS1#text-align
Using Web Standards in your Web Pages
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages#Other_deprecated_elements_and_deprecated_attributes
GΓ©rard
--
remove blah to email me
[Back to original message]
|