Log in

View Full Version : 100% Forum Width up to Maximum Width


lrshelby
12-20-2010, 01:07 AM
Adjustable Forum Width with Maximum
I know that I can adjust the forum width in the Style Manager where it says "Main Table Width" but I am not sure what to enter to achieve the look described below.

I would like the width to be variable up to 1000 pixels (or maybe up to 1200). However, I do not want it to be fixed at 1000 all of the time because I do not want members to have to scroll the width of the forum when they have a screen resolution less than 1000. I would like the forum to automatically adjust the size (shrink) when resolution is less than 1000, but maintain a maximum of 1000 pixels.

I have had the forum set to 100% so that it can adjust to differnt resolutions but I do not want it to be 100% on monitors that are widescreen and/or have a high resolution exceeding 1000 pixels. I would like the forum to stop expanding at 1000 pixels. Can anyone tell me how I can achieve this setup?

I am running 3.8.4 PL2

I know this requires some sort of code modification and I know some sites that have done this, but I have no idea how to get it done. It seems that with the wide variety of monitors/resolutions these days that this would be a popular setup. Any help would be greatly appreciated.

BirdOPrey5
12-23-2010, 02:55 AM
In Style Manger -> Your Style -> All Style Options

Scroll down to the "Body" box

In the "Extra CSS Attributes" field put in:

margin: 5px auto 10px auto;
padding: 0px;
max-width:1000px;


the 1000px controls the maximum width... the two auto's in the margin: line make sure it's centered.

lrshelby
12-23-2010, 04:20 PM
Thank you!!!

This works great!

frankw
01-23-2011, 04:34 AM
Its strange but i dont have a save button on that page were I /you edit the code?

BirdOPrey5
01-23-2011, 11:47 AM
Its strange but i dont have a save button on that page were I /you edit the code?

vBulletin 4 (which i assume you have) is different. I believe there is a stylevar you need to edit but I'm not 100% sure. Best to ask this question in the VB4 section.