Trouble with table alignment

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
gdur
Forum Members
Forum Members
Posts: 142
Joined: Sun Jan 10, 2010 10:59 am

Trouble with table alignment

Post 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
Peciura

Re: Trouble with table alignment

Post 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.
gdur
Forum Members
Forum Members
Posts: 142
Joined: Sun Jan 10, 2010 10:59 am

Re: Trouble with table alignment

Post 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.
Last edited by gdur on Wed Apr 07, 2010 9:39 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Trouble with table alignment

Post by Dr.CSS »

Post Reply

Return to “Layout and Design (CSS & HTML)”