MyBB Community Forums

Full Version: Margin in footer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to add a margin on the left and right of the footer (the part containing the copyright and sql stats). http://www.uans.com/forum/index.php

[Image: screen-capture-4.png]

How do I go about doing this?
Put the footer into a table and set it's width...

<table width="80%" align="center"><tr><td>
Content
</td></tr></table>

80% is just an example. That amount is what fills the page. 100% being the entire page.
Add this in your CSS:
#footer {
 margin-left: 40px; // change this to be suitable..
}
Admin CP > Themes & Styles > Themes > THEME NAME > global.css, and add that below all the other CSS.
(2009-01-27, 01:58 AM)TomL Wrote: [ -> ]Add this in your CSS:
#footer {
 margin-left: 40px; // change this to be suitable..
}
Admin CP > Themes & Styles > Themes > THEME NAME > global.css, and add that below all the other CSS.

Alternatively...

#footer {
        width: 80%; 
        margin-right: auto;
        margin-left: auto;
}
(2009-01-27, 01:57 AM)atomicj Wrote: [ -> ]Put the footer into a table and set it's width...

<table width="80%" align="center"><tr><td>
Content
</td></tr></table>

80% is just an example. That amount is what fills the page. 100% being the entire page.

Thanks, I tried this but did not work.
(2009-01-27, 01:58 AM)TomL Wrote: [ -> ]Add this in your CSS:
#footer {
 margin-left: 40px; // change this to be suitable..
}
Admin CP > Themes & Styles > Themes > THEME NAME > global.css, and add that below all the other CSS.

Thanks, this did the trick.
(2009-01-27, 02:04 AM)atomicj Wrote: [ -> ]
(2009-01-27, 01:58 AM)TomL Wrote: [ -> ]Add this in your CSS:
#footer {
 margin-left: 40px; // change this to be suitable..
}
Admin CP > Themes & Styles > Themes > THEME NAME > global.css, and add that below all the other CSS.

Alternatively...

#footer {
        width: 80%; 
        margin-right: auto;
        margin-left: auto;
}
Thanks...this worked too.