Change default overall page width

BobbyDouglas

Active Member
Jan 22, 2005
38
0
156
The default width for the main cpanel x3 page is around 800 px wide. I would like to change this to be a higher value, where do I go to do this? This is for the default skin.
 

BobbyDouglas

Active Member
Jan 22, 2005
38
0
156
What about swapping out the images and such? Are those overwritten too?

If I clone the skin, make the hard coded change somewhere in the HTML to change the width, when cpanel updates, my skin may break something, right? Or at least require me to reskin it in order for the skin to work with the update.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
The default width for the main cpanel x3 page is around 800 px wide. I would like to change this to be a higher value, where do I go to do this? This is for the default skin.
In the branding editor, change the CSS and for #cpanel set width:1024px; or whatever you desire. Note, the default width is 763 pixels, not 800 - you may wish to keep that in mind when performing your resizing.

This eliminates the need for a separate theme. Also, if you want this in all your styles, just do the same thing to the other styles.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
The CSS file for the default skin only has the background set.
Correct, what you're going to do is override the default CSS that skin comes with. Here's what my CSS looks like for the style I am using (after editing in my CSS code):

Code:
body { background-color: #E6E6E6 }

#cpanel {
width: 1000px;
}
If you are using Firefox and find yourself wanting to know more about the CSS of cPanel themes, there's a nifty add-on called Firebug you may wish to use. With that, you can click on "Inspect" and you can mouse over any portion of the interface and the add-on will tell you what CSS is applied to what you are looking at.
 
Last edited:

BobbyDouglas

Active Member
Jan 22, 2005
38
0
156
Thanks! I assumed that since it wasn't set in that cpanel skin (while it is set in others), that it was an option I couldn't change. I was, however, able to change it.

:D