Page 1 of 1

Trouble with table alignment

Posted: Wed Apr 07, 2010 7:08 am
by gdur
Hi,

I face an alignment problem with tables. I looks like it is caused by my stylesheet css because when I disable css (using FF web developer - cssid=528) it behaves like expected.

So here's the problem description;

A table when aligned center while editing the page is not showed centered on the front end although the source code shows it should align center. The table remains persistant on the the left. Assigning right align to the same table it does show on the right hand side. My work around for the time being was to put a around {content} in the associated template. But of course everything is forced to center by doing so which is allright for this site anyway but in other cases it might be very inconvenient.
I have set up two test pages to illustrate this behaviour and would appreciate if anyone could explain what is causing this inconsistant behaviour.

first test page using the modified template (with forcing div's) forcing content to center:

http://83.98.128.43/~larosa/index.php?page=test

second test page using the original template (without forcing div's):

http://83.98.128.43/~larosa/index.php?page=test2

Appreciate any response

Re: Trouble with table alignment

Posted: Wed Apr 07, 2010 7:50 am
by Peciura
Property "align" is deprecated, no wonder why you are having issues with it.
As you already noticed div's and CSS works better for positioning object on page. Instead of using 8 floating tables consider using 1 table (of width 100%) and >8 cells in it.

Re: Trouble with table alignment

Posted: Wed Apr 07, 2010 9:34 am
by gdur
thanks for your fast response however, it appears to me that you have misunderstood that I am actually looking for an explanation in order to get more grip on it. The sample pages only serve the purpose to visualise what I'm struggling with. Therefor I used the seperate tables in the test pages. In other words, I would like to understand why it is behaving as it is...
why the table positions at the right due to the statement but positions left regardless the statement.

Re: Trouble with table alignment

Posted: Thu Apr 08, 2010 4:08 pm
by Dr.CSS