This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: align="center"


On Wed, Sep 18, 2002 at 09:30:06AM -0400, ed nixon wrote:
> 
> What browser are you using to review the output?
> 
> The 'align' attribute is deprecated in CSS2. There is a 'text-align' 
> style characteristic, but it's not used for doing what you want to do, 
> i.e. center a block in the browser window or page.
> 
> I think these changes will be reflected in the behaviour of "modern" 
> browsers such as IE6 (at least in standards mode) and in 
> Mozilla/Netscape 7, particularly if your DOCTYPE is xhtml.
> 
> To center an <img> block (or any other block displayed element) in html 
> or xhtml, you need to do two things:
> 1. specify the 'width' of the image area with a length or percentage value
> 2. set the margin-left and margin-right values of the <img> style to "auto"

I've got a bug report open on this for the DSSSL stylesheets.  It looked
very much to me that the html being generated was incorrect.  It's all
documentated in the bug report, under the username of 'taoy'.

Joe
-- 
"As far as the laws of mathematics refer to reality, they are not certain;
and as far as they are certain, they do not refer to reality." - Albert
Einstein, 1921

Attachment: msg00876/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]