MyBB Community Forums

Full Version: Removing top margin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Doesn't work either way.
there's a rogue   in your header template somewhere near the top
also, i'd suggest removing the table wrapping the entire page and doing it with CSS - it's not necessary
the   should be at the very top of the header template
Awesome everything seems to be fixed.
I didn't find a rogue   in my header.
Hi....
Do what Janota said but put it in the body attribute
(2010-09-26, 06:06 AM)death180 Wrote: [ -> ]I didn't find a rogue   in my header.

Link to your forum?
http://localhost/mybb/ Toungue

I will try what Diron said.

EDIT: Nope that didn't work.
try
margin-top: 0;
in body
Oh for god sake. The number of people replying and it is failing. Alright, i have had a enough. Try this, i recently did this on a theme i was coding.

Body Coding

body {
    background: #FFF;
    color: #000;
    font-family: Verdana, Arial, Sans-Serif;
    font-size: 13px;
    text-align: center; /* IE 5 fix */
    padding: 0px;
margin: 0px;
}

Container coding

#container {
    width: 940px;
    background: #fff;
    color: #000000;
    margin: 0 auto;
    padding: 0px;
    text-align: left; /* IE 5 fix */
}

Try those and see if that works. The Container may look weird at first, but that is because i coded it to suite a theme.
Okay that worked for me but I added the 20px of padding back to the container because that didn't make a difference.
Pages: 1 2 3