Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 04-29-2013, 10:35 PM
MaXimus MaXimus is offline
 
Join Date: Nov 2011
Location: Dubai, U.A.E.
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to edit the page width on vB4?

I tried searching for it online but each guide I read about says something different and the instructions don't match what I see in the Admin CP

Can someone please tell me the correct way to do it?

thanks
Reply With Quote
  #2  
Old 04-29-2013, 10:42 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We need more information. Link to your site with the page you are referring to? What new width are you trying to set it to. Otherwise all we can tell you is set the width on the <body> or <htmL> elements. We would only be guessing

Oops: I see you did leave a link


You changed <body> width to 70%, I see. Post your changed CSS and what you are trying to accomplish. Are you trying to create a fixed width?


I think this is what you are looking for. Add max-width to additional.css file. Change back that stylevar to auto.
Code:
body {
  color: #3E3E3E;
  font-size: 13px;
  line-height: 1.23;
  margin: 0 35px;
  min-width: 650px;
  max-width: 1024px;  /* This is probably what you are  are looking for :) *
  width: auto;
}


/* additional css */
body { max-width:  1024 px }    /* What ever size you want */
Hope it helps
Reply With Quote
Благодарность от:
MaXimus
  #3  
Old 04-29-2013, 10:45 PM
MaXimus MaXimus is offline
 
Join Date: Nov 2011
Location: Dubai, U.A.E.
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well I managed to find a setting in Style Variable Editor and I set the Global Doc_width to 70% but that made the forum look funny as if it were leaning towards the left and there is a blank area on the right, I want it to be centered like on this site for example

my forum URL:

http://forums.tweakarena.com/

thanks
Reply With Quote
  #4  
Old 04-29-2013, 10:59 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Matrix Leader View Post
well I managed to find a setting in Style Variable Editor and I set the Global Doc_width to 70% but that made the forum look funny as if it were leaning towards the left and there is a blank area on the right, I want it to be centered like on this site for example

my forum URL:

http://forums.tweakarena.com/

thanks
Updated my previous message. I think it will help you
https://vborg.vbsupport.ru/showpost....83&postcount=2
Reply With Quote
  #5  
Old 04-30-2013, 01:00 AM
MaXimus MaXimus is offline
 
Join Date: Nov 2011
Location: Dubai, U.A.E.
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
We need more information. Link to your site with the page you are referring to? What new width are you trying to set it to. Otherwise all we can tell you is set the width on the <body> or <htmL> elements. We would only be guessing

Oops: I see you did leave a link


You changed <body> width to 70%, I see. Post your changed CSS and what you are trying to accomplish. Are you trying to create a fixed width?


I think this is what you are looking for. Add max-width to additional.css file. Change back that stylevar to auto.
Code:
body {
  color: #3E3E3E;
  font-size: 13px;
  line-height: 1.23;
  margin: 0 35px;
  min-width: 650px;
  max-width: 1024px;  /* This is probably what you are  are looking for :) *
  width: auto;
}


/* additional css */
body { max-width:  1024 px }    /* What ever size you want */
Hope it helps
I copy / pasted the above without the * What ever size you want */ and without * This is probably what you are are looking for * but still, take a look at the page, the blank space is on the right only it looks like the forum is aligned to the left, I want it to be centered like on these forums

please help bro I'm a total n00bie

cheers
Reply With Quote
  #6  
Old 04-30-2013, 04:59 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Matrix Leader View Post
I copy / pasted the above
cheers
I see what you are looking for. Delete the last CSS and add this.

Code:
body {
  margin: 0 auto;
  max-width: 1024px;
  min-width: 650px;
  width: auto;
}
Reply With Quote
  #7  
Old 04-30-2013, 08:01 AM
MaXimus MaXimus is offline
 
Join Date: Nov 2011
Location: Dubai, U.A.E.
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
I see what you are looking for. Delete the last CSS and add this.

Code:
body {
  margin: 0 auto;
  max-width: 1024px;
  min-width: 650px;
  width: auto;
}
thanks a looooooooooot bro that worked like a charm check my site out!! you are a professional coder man!

I really appreciate it
Reply With Quote
  #8  
Old 05-02-2013, 01:35 AM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or just place the word *auto* in the style variable instead of a number.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04457 seconds
  • Memory Usage 2,238KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete