| View previous topic :: View next topic |
| Author |
Message |
bottle
Joined: 30 Oct 2006 Posts: 21
|
Posted: Sat Jan 27, 2007 12:37 am Post subject: centering a layout |
|
|
ok, this might be a silly question but how do you center a layout from the CSS?
if you put text-align: center; then you'll have all your text centered and this....sucks
?!?! |
|
| Back to top |
|
 |
tartan

Joined: 14 Nov 2006 Posts: 18
|
Posted: Sat Jan 27, 2007 9:52 pm Post subject: |
|
|
I've seen this on some forums
it's done by margins but I don't know how you can calculate the left and right margins  |
|
| Back to top |
|
 |
Fed Site Admin

Joined: 12 Aug 2005 Posts: 176
|
Posted: Mon Jan 29, 2007 11:20 pm Post subject: |
|
|
TS is centered with
| Code: |
#container
{
width: 950px;
margin-left: auto;
margin-right: auto;
}
|
|
|
| Back to top |
|
 |
bottle
Joined: 30 Oct 2006 Posts: 21
|
Posted: Tue Jan 30, 2007 10:17 pm Post subject: |
|
|
thanks, it works
I don't understand why there's always some white space at the top of the page
is it possible to remove it? how? |
|
| Back to top |
|
 |
fivesevennine
Joined: 09 Dec 2005 Posts: 7
|
Posted: Thu Feb 01, 2007 1:27 pm Post subject: |
|
|
| Code: | body {
margin: 0px;
} |
Should remove any space (margins) at the top and bottom of the site. |
|
| Back to top |
|
 |
|