Center Matrix theme (looked at other posts)

ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Tue, 2008-10-21 10:31

Hi, Is it possible to center the Matrix theme including sidebar, at the moment it seems to be on the left of the page and the images spread out over the page. I would like everything nice and tight in the middle of the page.

I have looked for over half an hour at other posts so sorry if I missed it.
I am also not to good at CSS but willing to have a go if pointed in the right direction.

G2.3

 
derickson

Joined: 2006-04-13
Posts: 32
Posted: Fri, 2009-03-06 15:48

I found that if you add width: 1000px; to the theme.css file in the following section you can make it fixed width but I am also trying to center the whole page. Please let me know if you found anything.

/* ********************************************************************************
* Sections
* body.gallery Page body in G2 standalone (doesn't apply to embedded)
* #gallery Page container
* #gsNavBar Top bar with breadcrumb and other links
* #gsSidebar Sidebar
* #gsContent Main content
*/

body.gallery {
margin: 0;
padding: 0;
width: 1000px;
}

David

 
derickson

Joined: 2006-04-13
Posts: 32
Posted: Fri, 2009-03-06 16:00

Ok, I found it. Try this.

/* ********************************************************************************
* Sections
* body.gallery Page body in G2 standalone (doesn't apply to embedded)
* #gallery Page container
* #gsNavBar Top bar with breadcrumb and other links
* #gsSidebar Sidebar
* #gsContent Main content
*/

body.gallery {
margin: 0;
padding: 0;
text-align:center;
}

#gallery {
padding: 8px;
width: 1000px;
text-align:left;