View Full Version : How to edit the page width on vB4?
MaXimus
04-29-2013, 10:35 PM
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
tbworld
04-29-2013, 10:42 PM
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.
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 :)
MaXimus
04-29-2013, 10:45 PM
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
tbworld
04-29-2013, 10:59 PM
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.php?p=2419183&postcount=2
MaXimus
04-30-2013, 01:00 AM
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.
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
tbworld
04-30-2013, 04:59 AM
I copy / pasted the above
cheers
I see what you are looking for. Delete the last CSS and add this.
body {
margin: 0 auto;
max-width: 1024px;
min-width: 650px;
width: auto;
}
MaXimus
04-30-2013, 08:01 AM
I see what you are looking for. Delete the last CSS and add this.
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 :)
Ba'al
05-02-2013, 01:35 AM
Or just place the word *auto* in the style variable instead of a number.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.