News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to center forum?

Started by pittu, May 14, 2015, 09:38:33 PM

Previous topic - Next topic

pittu

I set forum width 95% in adminpanel.

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

thnx.

Jade Elizabeth

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 :).
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

pittu

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;
}

Colin

May we have a link to your forum, please.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

br360

#4
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. ;)

pittu

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.

Advertisement: