On Sat, 21 Jul 2001, Ronny Buchmann wrote:
> * Kathryn Andersen <[EMAIL PROTECTED]> [2001-07-21 13:58] schrieb:
> > On Sat, Jul 21, 2001 at 11:19:42AM +0200, Ronny Buchmann wrote:
> > > * Allan Rae <[EMAIL PROTECTED]> [2001-07-21 09:21] schrieb:
> > > >
> > > > 2a. Opera doesn't want to "text-align: center;" the guii table status
> > > > entries.
> > > yes it does! (opera 5.0 linux)
> >
> > No it doesn't! (opera 5.0 linux)
Yes it does!
> > I've noticed that with my own pages -- if one wishes to place a *table*
> > positioned in the centre of the page, and puts it inside, say a div
> > which has "text-align: center;" then the table still sits on the left.
I've seen this also. Haven't figured out what to do about it yet.
> but this isn't the case here, the table itself doesn't have any
> special alignment (at least i don't see anything like that) and since
> it uses 100% of the page width, it wouldn't make sense
Ronny's right.
> > (And if you give the table the style "text-align: center;" then that
> > just centres the text inside the table (as one might expect))
> i think allan did mean the table entries, which use the css classes
> "guiiPending" and so on and these are shown correctly (centered)
Just the table entries. Hmmm... I now see that the the entries are
centred in my Opera5-Linux also. Weird because it didn't do that at all
while was testing.
> if i put a div with "text-align: center" around a table, mozilla
> renders all entries centered (opera doesnt), i think mozilla is
> correct here, but im not sure
Hmm... I'm not sure either, but, <table> is a block-level element (BLE) so
I don't think it has to inherit from a surrounding <div> (another BLE).
So I looked at the standard but maybe I didn't find the right stuff to
read but CSS doesn't seem to indicate that table should inherit.
> > If Ronny has found a way to make opera obey, then I'd like to know how!
>
> if you want a table centered use <table align=center>, it seems there
> is no css stuff for it (maybe "alignment"?) text-align is certainly
> not the right thing for it (at least what the name suggests)
Trouble is that Ronny's solution isn't valid XHTML.
Allan. (ARRae)