Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mynewromantica

macrumors regular
Original poster
Aug 3, 2009
224
0
I am really new to Dreamweaver and I am working on a personal website. I am using layout tables to create the pages and I want my layout tables to be centered. How do I get them to do that?
 

Dal123

macrumors 6502a
Oct 23, 2008
903
0
England
You need to put two tables ontop of each other/ sort of one in the other. You set one with pixels padding from each side and set the other as a percentage. Only watched a tutuorial on it quickly I'm a complete novice.
I was going to do this; but looking into it tables are old and obsolete now. It's all done by CSS now. Big subject; I'm currently trying to do that at the moment. :eek:
I would try to do it by CSS because information in tables is not recognised by search engines (google) so you'll have a very poor rating and hard to get traffic.
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,852
9
USA
I would try to do it by CSS because information in tables is not recognised by search engines (google) so you'll have a very poor rating and hard to get traffic.

Google picks up the data from tables, just not as efficiently.
 

Darth.Titan

macrumors 68030
Oct 31, 2007
2,905
753
Austin, TX
Try to avoid table based layouts if you can. That being said...

You'll need to set a width for your table (either using the table tag's width attribute or in the stylesheet), then in your CSS use
Code:
table {
margin-left: auto;
margin-right: auto;
}

Note: Won't work with IE5
 

Dal123

macrumors 6502a
Oct 23, 2008
903
0
England
Google picks up the data from tables, just not as efficiently.
:eek::eek::eek::eek::eek: Sorry :eek::eek::eek::eek::eek:

Try to avoid table based layouts if you can.
So what is the correct way to layout?:confused:
I'm assuming something with a background but then how do you position that, I have a navbar I'm doing and struggled so much with it; but thanks to angelwatt, Jim, and Nuxx we managed to get my background image to display. That being said; it's 972px wide by 190px high. I want this to centre on the page, to the desired effect of what this original post was if you understand me :eek:.
Any help appreciated.:p
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.