MyBB Central

Full Version: [Solved][Help] Make a theme dynamic(Stretch)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all, I was wondering how to make a theme "Dynamic". As in, stretch across all screen resolutions. Like mybbcentral to be specific Tongue . I don't really like the big blank bits on the sides of my site lmao. As seen here;
[Image: wqoghi.png]
See the blank bits on both sides, and how the main part doesn't stretch all the way? That's what I want to change, so it does. Any help would be appreciated Smile
go in your global.css file in the templates adn style setting for that theme.

click on advanced edit and change under "container" there is a width, change to 92%
Didn't work =/
Made it about 3 pixels smaller on each side lol.

This is what I have now;
Code:
}

#container {
    width: 92% auto;
    color: #a2a2a2;
    margin: auto auto;
    padding: 0 20px 20px 20px;
    text-align: left;
    background-color: #121212;
}

And this is the original;
Code:
}

#container {
    width: 100% auto;
    color: #a2a2a2;
    margin: auto auto;
    padding: 0 20px 20px 20px;
    text-align: left;
    background-color: #121212;
}
Remove the auto, not seen that in a width before.
yeah auto is messing with some config settings in your template.....all you have to do is remove it and your all set.
Removed the auto, so it looked like;
Code:
width: 92%;
And I also tried;
Code:
width: 100%;

But to no avail =/
Try reemoving padding.
Ok, fixed it. I did this;
Code:
width: auto;

In #wrapper Smile

Now it will stretch dynamically over all screen resolutions(Tested in VM)

Thanks for the help guys
I was going to ask about this. But then its being discussed already. Thanks!
(Jan 24, 2010, 02:37 PM)sudarsan7532 Wrote: [ -> ]I was going to ask about this. But then its being discussed already. Thanks!

Answer is right above your post, lol.
Pages: 1 2