vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Customizing forum style width for all Display resolutions (https://vborg.vbsupport.ru/showthread.php?t=321136)

onlinejalsa 12-19-2015 06:38 PM

Customizing forum style width for all Display resolutions
 
Hello,

I would like to know how to keep my forum width to left side and add some blocks on right side of my VB homepage. I followed the below code and edited it in my css file. But i cant see the same fixed length on all resolutions. how can i make it same for all resolution desktops/laptops/tablet

I made changes using my 24 inches monitor and it looks good. but if i see from any other laptop with digfferent resolutions, my forum blocks are going to left side.
how can i make it Even for all resolutions

First edit the vbulletin.css template and find this code:
Code:

margin: {vb:stylevar doc_margin};

change it to
Code:

margin: auto; ( auto or left or right)

Then in Style Variable Editor in Common group find doc_width (Document Width)
change Units to PX
and Size to XXX (example 800)

XXX is your forum width size

onlinejalsa 12-21-2015 03:39 PM

can someone help me out here. Did i posted in wrong forum ?

MarkFL 12-21-2015 03:59 PM

Quote:

Originally Posted by onlinejalsa (Post 2560892)
can someone help me out here. Did i posted in wrong forum ?

You may need to change the width to a percentage instead of using px as the units. :)

Dave 12-21-2015 03:59 PM

You have to use percentages, not pixels.
For example a container which contains everything, could have a width of 100%.
Inside that container you then have 2 blocks, which could be 80% and 20%.

Mark beat me to it.

MarkFL 12-25-2015 03:09 AM

I just want to report that this issue was resolved by adding the following CSS selector to the "additional.css" template:

HTML Code:

body, .morbid-box {
        width: auto !important;
}



All times are GMT. The time now is 06:07 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.01096 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_html_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