Thu, 23 Feb 2006 07:57:04 -0600 from Jeff Higgins
<oohiggins@yahoo.com>:
> I would like to left align the text
> within a paragraph element while keeping
> the paragraph center aligned within the body.
> The following doesn't do it.
Please don't post code; give a URL so that we can try things
ourselves.
In general, you want to style the paragraph with equal and nonzero
values of margin-left and margin-right. Why? A paragraph will expand
to the maximum width available to it; therefore you center it
(visually) by restricting the available width.
Nicholas Theodorakis has a good page on centering:
http://theodorakis.net/blockcenter.html
You may or may not need text-align:left(*) as well. (It's the
default, so you need it only if some enclosing element has a
different alignment that the paragraph inherits.)

Signature
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you
Jeff Higgins - 24 Feb 2006 00:31 GMT
> Thu, 23 Feb 2006 07:57:04 -0600 from Jeff Higgins
> <oohiggins@yahoo.com>:
[quoted text clipped - 13 lines]
>
> Why We Won't Help You:[snip]
Thank you Stan, for the pointer and tips. Much appreciated.
Maybe even more appreciated was your fair handling of
this newcomer's posting transgressions. Notice taken.
This is my very first stab at CSS.
Just bought ISBN 0-596-00525-3.
Haven't absorbed all (much?) of it yet.
Jeff Higgins
Jeff Higgins wrote :
> Hi,
> I would like to left align the text
> within a paragraph element while keeping
> the paragraph center aligned within the body.
Centring using CSS
http://dorward.me.uk/www/centre/
Interactive demo on CSS horizontal alignment and horizontal formating
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/HorizontalAlignment.html
Gérard
--
remove blah to email me
Jeff Higgins - 26 Feb 2006 00:32 GMT
> Jeff Higgins wrote :
>> Hi,
[quoted text clipped - 7 lines]
> Interactive demo on CSS horizontal alignment and horizontal formating
> http://www.gtalbot.org/NvuSection/NvuWebDesignTips/HorizontalAlignment.html
Thank you for the pointers Gérard.
Jeff Higgins