vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   100% Forum Width up to Maximum Width (https://vborg.vbsupport.ru/showthread.php?t=255550)

lrshelby 12-20-2010 01:07 AM

100% Forum Width up to Maximum Width
 
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:
Code:

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

Quote:

Originally Posted by frankw (Post 2153215)
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.


All times are GMT. The time now is 10:51 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.01067 seconds
  • Memory Usage 1,719KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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