centering the page and making width to 900px

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
sallygreen100
Posts: 6
Joined: Sat Jan 07, 2006 10:14 am

centering the page and making width to 900px

Post by sallygreen100 »

hi,

how would i make everything centred and make the width 900px. i tried playing around with the css but i cant work it out.

i tried making a table of 900px width and placing everything in there; but that only seems to work with firefox. and not very well.

i would appreciate any help.

thank you.

sally.
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Sally,

just change the parts in the style.css file for #wrapper1 and #wrapper2 to the following code:

Code: Select all

/**
* Main wrapper around the div containers
*/
#wrapper1 {
    text-align: center;
}
#wrapper1, #wrapper2 {
	margin: auto;
    width: 900px;
    padding: 0px;
    text-align: left;
}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sallygreen100
Posts: 6
Joined: Sat Jan 07, 2006 10:14 am

Post by sallygreen100 »

thank you.

it worked beautifully. :D
Post Reply