Back to vBulletin Tips & Tricks

Fixed Main Table Width
by amjadz4 30 Dec 2009

Okay so some themes come only with one width i.e 100% which fills up the screen. Like me, many want to match their website and want the width of the main table to be fixed. So how to adjust the width of the CMS, Blog and Forum all together?

vBulletin 3 had an easy way to do it, under Main CSS of the template. But in vB 4 its a bit different. Follow these steps to adjust the width of your vbulletin.

1. Log into AdminCP
2. Navigate to Styles & Templates > Your style > StyleVars
3. In the search field type in doc_width (under Common).
4. Now set the Units and Size as per your requirement, and Save. (default: auto)

That's it!

Now if at all for some reason your theme is not center aligned after adjusting the width do this:
  • Type doc_margin in the search field.
  • Set Left & Right to auto
Now you have your CMS, Blog and Forum center aligned to the width of your choice!

# Additional tip from anthony parsons:
Quote by anthony parsons
And don't forget to untick the "Use top margin for all sides" box, otherwise it will force left alignment.

Similar Mods

End-User Options vB 4 - Fixed Main Table Width vBulletin 4.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024