Forum Moderators: open

Message Too Old, No Replies

one table in middle, one in the right corner below

         

ankienen

8:24 am on May 28, 2008 (gmt 0)

10+ Year Member



I need a code to align one table to the centre of the page, and align an other table at the right border below. I cant find a working solution myself. <snip>

[edited by: engine at 8:39 am (utc) on May 28, 2008]
[edit reason] Please post code, not links, thanks [/edit]

penders

9:08 am on May 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<table align="center"> 
:
</table>

<table align="right">
:
</table>

Should work but... it is not the recommended way of doing this these days (the ALIGN attribute is deprecated and does not separate style and content). A CSS solution [webmasterworld.com] would be a lot better. I'd also question the use of tables in favour of simple DIV containers (and CSS). Tables should not really be used for layout (old habits die hard); tables are for tabular data/information.

Hope that helps, welcome to webmasterworld :)

oddblob

11:24 am on May 28, 2008 (gmt 0)

10+ Year Member



i agree with penders, use a DIV. What you could do is use 2 Divs floated side by side in the middle of the page using the <center> tag above them. Then place one table in each using the DIV's to align them where you want.

Hope that helps :)