Hi Lachlan, Thanks for that but I was actually wanting to center align justified text for a particular purpose. Evidently my experiment is invalid.
Thanks anyway. -- Paul A Noone Webmaster, ASHM [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Hunt Sent: Thursday, 15 December 2005 2:35 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] Justify this Paul Noone wrote: > Hopefully a quick question, I hoope, as the W3C specs are no help on > this one. No, they are usually always helpful but you need to know what you're looking for. > I want to centre align text and justify it at the same time. I've > applied the following mark-up which, surprisingly, does the trick. But > can justify be applied as an optional extra parameter, or does this > just work through browser quirks? > > text-align: center justify; If that does anything at all, it's a browser bug. That property should be ignored by a conforming browser. Centred and justified text are mutually exclusive options and it makes little sense to combine them like that. However, I'm going to assume you're looking for a way to centre the box, but have the text justified within. In which case, this should do the trick: p { width: 50%; margin: 0 auto; text-align: justify; } Just use an appropriate selector and width for your needs. -- Lachlan Hunt http://lachy.id.au/ ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************