Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: pittu on May 14, 2015, 09:38:33 PM

Title: How to center forum?
Post by: pittu on May 14, 2015, 09:38:33 PM
I set forum width 95% in adminpanel.

But the forum displying to left of browser. How to center it?

thnx.
Title: Re: How to center forum?
Post by: Jade Elizabeth on May 15, 2015, 05:16:03 AM
What SMF are you using?

What ever container the forum is in, in 2.0 I believe it's "wrapper", set the margin to 0px auto :).

2.0 looks like this:
div#wrapper
{
     margin: 0 auto;
}


I could be more specific if I had a link to your site or knew your theme and SMF version :).
Title: Re: How to center forum?
Post by: pittu on May 19, 2015, 09:00:18 PM
It is already set like that.
Still forum displaying to left... More margin on right side.

/* This division wraps the entire forum when a forum width is set. */
.wrapper
{
width: 990px;
margin: 0 auto;
}
Title: Re: How to center forum?
Post by: Colin on May 19, 2015, 10:10:35 PM
May we have a link to your forum, please.
Title: Re: How to center forum?
Post by: br360 on May 20, 2015, 03:15:49 AM
Quote from: pittu on May 19, 2015, 09:00:18 PM
It is already set like that.
Still forum displaying to left... More margin on right side.

/* This division wraps the entire forum when a forum width is set. */
.wrapper
{
width: 990px;
margin: 0 auto;
}


Shouldn't it be this in your index.css?

/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
   margin: 0 auto;
   min-width: 764px;
   max-width: 2300px;
}


Try that and see if it helps at all; should fix it.

Edit- Make sure to do a hard refresh after making the changes. ;)
Title: Re: How to center forum?
Post by: pittu on May 20, 2015, 11:58:05 AM
Quote from: br360 on May 20, 2015, 03:15:49 AM

/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
   margin: 0 auto;
   min-width: 764px;
   max-width: 2300px;
}


Try that and see if it helps at all; should fix it.

Edit- Make sure to do a hard refresh after making the changes. ;)

Thnx. working. I am using custom theme so it was little different I guess.