vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How do i center-align vbulletin page after applying custom width? (https://vborg.vbsupport.ru/showthread.php?t=231114)

Fusion2 12-24-2009 09:53 PM

How do i center-align vbulletin page after applying custom width?
 
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

Fusion2 12-24-2009 10:26 PM

Quote:

Originally Posted by MrBlackStar (Post 1937626)
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

Quote:

Originally Posted by consolegaming (Post 1943893)
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

Quote:

Originally Posted by consolegaming (Post 1943893)
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

Quote:

Originally Posted by consolegaming (Post 1943893)
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 06:29 PM

It worked for me too.

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

ribone 04-20-2013 05:39 AM

Many thanks for this, quickly sorted.

thedino 07-18-2014 04: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 Code:

html { margin: 0 2%;}


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01136 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete