Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

How to make forum display 50% etc, instead of 100%

Aloittaja ltaylor, tammikuu 09, 2007, 11:38:55 IP

« edellinen - seuraava »

ltaylor

Hi,
New to SMF boards and customizing right now.
Can anyone tell me where or how to change the forum display percent from 100% to another fixed %?

Thanks!

Daniel15

To make the forum display smaller, you can change the margin specified in the CSS file. In Themes/default/style.css, find:

/* The main body of the entire forum. */
body
{
background-color: #E5E5E8;
margin: 0px;
padding: 12px 30px 4px 30px;
}


The 12px 30px 4px 30px is the padding (12 pixels on top, 30 pixels to the right, 4 pixels below, and 30 pixels to the left). If you want to make it 50%, make both the left and right padding 25%:

/* The main body of the entire forum. */
body
{
background-color: #E5E5E8;
margin: 0px;
padding: 12px 25% 4px 25%;
}


Change the values depending on what you want :)

EDIT: It's best to create a copy of the default theme (via the admin panel), and then edit your copy. In case you do something wrong, you still have the default available ;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

ltaylor

Thank you. I did find the Margin option the Css file. I changed that, but it brought the top margin down as well. Your suggestion I'm sure will fix that problem (top margin).
I'm very familiary with Vbulletin forums and altering the coding for them, but i have to admit, SM is much easier to modify!. SM has come along way! Nice to see.

Thanks again for your help!

Advertisement: