Log in

View Full Version : How do i center-align vbulletin page after applying custom width?


Fusion2
12-24-2009, 09:53 PM
I set a custom width to my vBulletin. But, the page shows aligned to left. How do i align to Center? Cant find an option for this under style var.

MrBlackStar
12-24-2009, 10:16 PM
1)set doc_width and doc_maxwidth same value , this is your custom width of forum
2)doc_magin:
Use the 'top' value for all sides :Yes
Top:auto
________
new developments in Jomtien (http://pattayaluxurycondos.com)

Fusion2
12-24-2009, 10:26 PM
1)set doc_width and doc_maxwidth same value , this is your custom width of forum
2)doc_magin:
Use the 'top' value for all sides :Yes
Top:auto

Thanks worked like a charm! :)

brianpauljaus
12-26-2009, 07:30 PM
same here. Got into the same problem and this fixed worked for me too. nice one !

zygote
12-30-2009, 07:01 AM
Where is doc_width and doc_maxwidth settings?
--EDIT
Found them under Style Manager -> Style Vars -> Common
Seems VBCMS doesn't use these variables.(Yeap, working now)

Miras
12-30-2009, 07:52 AM
vB4 CMS - working fine
thanks for the hint!

sleepykim
01-01-2010, 06:15 AM
thank you

consolegaming
01-01-2010, 11:20 AM
For the margin you don't need to do the top part mentioned. i.e. if you leave use top for all sides as No and just set the left and right margins to auto then that'll work fine. And that means if you need to add a margin to the top or bottom you can do. Usually you won't need to but I felt it worth mentioning.

Birute
01-03-2010, 08:14 PM
Works nicely, thanks!!

SM_Rob
01-06-2010, 06:20 PM
How do I align the VBCMS (content.php) as it seems to have independent variables?

Jon@Refresh
01-16-2010, 10:54 PM
Does anyone know how to alter the width of the CMS? The changes in this thread only apply to the forum.

alvin_mx
01-18-2010, 01:20 AM
excelent thanks!

rlvassallo
01-22-2010, 05:10 PM
For the margin you don't need to do the top part mentioned. i.e. if you leave use top for all sides as No and just set the left and right margins to auto then that'll work fine. And that means if you need to add a margin to the top or bottom you can do. Usually you won't need to but I felt it worth mentioning.

thanks this worked well.:up:

mmhmm
01-27-2010, 02:01 AM
For the margin you don't need to do the top part mentioned. i.e. if you leave use top for all sides as No and just set the left and right margins to auto then that'll work fine. And that means if you need to add a margin to the top or bottom you can do. Usually you won't need to but I felt it worth mentioning.


thank you this work perfectly.

ChrisG.
01-27-2010, 05:45 AM
For the margin you don't need to do the top part mentioned. i.e. if you leave use top for all sides as No and just set the left and right margins to auto then that'll work fine. And that means if you need to add a margin to the top or bottom you can do. Usually you won't need to but I felt it worth mentioning.


Thanks. This thread has been helpful to me, so it gets a "thank you" bump.

cheers

nima6
08-27-2011, 05:29 PM
It worked for me too.

Thanks for the help. I spent a lot of time finding this solution :)

ribone
04-20-2013, 04:39 AM
Many thanks for this, quickly sorted.

thedino
07-18-2014, 03:09 PM
Thanks, works in 4.2.2 also

malmazan
04-29-2017, 08:08 AM
You can still keep a margin adding something like this to the additional.css template


html { margin: 0 2%;}