Topic: So now you guys have me addicted - Layout Question (Read 1215 times)
I love Pokemon
Posts: 14
96 credits Members referred : 0
« on: Oct 12, 2006, 11:00:07 PM »
Well because of some helpful members of these forums they had me realize I'm out of date with my plain html stuff. And I've slowly been grasping onto what I've read. However I've been building two websites at once(one which is almost done and been recoded in almost all css, just need to add content) and this one: http://members.shaw.ca/pixelatedkarma/clients/esp/
Now my problem lies here: theres all these beautiful wonderful tutorials on 3 columns and blah blah blah but not really alot of materials that I've found in english about doing these centered layouts. Now I kind of have a start to this as you can see but I cant get rid of the gray to the right of my layout so that it will center . Can anyone point me in the right direction for a fix to this and a tutorial on centering the layouts? I''d really appreciate it. Thank you kindly.
Global Moderator
Internet Junkie
Gender:
Posts: 1807
9006 credits Members referred : 6
« Reply #1 on: Oct 12, 2006, 11:23:08 PM »
Use
Code:
margin: 0 auto; width: 709px;
instead of the margin and padding you are using now
I love Pokemon
Posts: 14
96 credits Members referred : 0
« Reply #2 on: Oct 12, 2006, 11:52:25 PM »
Okay but it wont center now . And in all the tutorials it says absolute values are left right or positioned I think it is? So what would you do for centering it? Sorry for being such a newbie.
Also would it be wrong and rookie like to put a table inside of css container?
I am a fanatic. So?
Gender:
Posts: 595
3703 credits Members referred : 2
« Reply #3 on: Oct 13, 2006, 01:26:26 AM »
Relax, there's no such thing as right or wrong.
Well, there is the issue of if it validates; but other than that, there is no right?
Many beginners, or folks just fed up with IE doing things different than every other browser will turn to using a combination of tables and CSS.
Okay but it wont center now . And in all the tutorials it says absolute values are left right or positioned I think it is? So what would you do for centering it? Sorry for being such a newbie.
Also would it be wrong and rookie like to put a table inside of css container?
you need to add for IE this code to your body: text-align:center