3 replies [Last post]
x
Offline
newbie
Last seen: 17 years 39 weeks ago
Joined: 2004-04-23
Posts: 1
Points: 0

I would like to find out how to make a centered layout. An expample I've found is at http://www.alistapart.com/ I tried to open their linked css , but for some reason it didn't work. If anyone could help me out it would be greatly appreciated.

Fruitcake
Offline
Enthusiast
Perth, Australia
Last seen: 13 years 42 weeks ago
Perth, Australia
Timezone: GMT+8
Joined: 2004-04-12
Posts: 257
Points: 0

Centered Layouts

This link seems to work: http://www.alistapart.com/c/ala.css

I am Dan, Dan I am.

blakems
blakems's picture
Offline
Enthusiast
UTah, USA
Last seen: 18 years 41 weeks ago
UTah, USA
Timezone: GMT-7
Joined: 2003-04-07
Posts: 60
Points: 0

Centered Layouts

what you need to do is give an width to your container div and give it left and right auto margin: See example:

#container {width: 700px;
 margin: 0 auto; }

-bMs-
http//www.blakems.com !important;

firstreflex
firstreflex's picture
Offline
Enthusiast
Brooklyn USA
Last seen: 14 years 46 weeks ago
Brooklyn USA
Timezone: GMT-5
Joined: 2003-10-21
Posts: 104
Points: 0

Centered Layouts