MyBB Community Forums

Full Version: White box around webpage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright, I've tried everything. One second everything was fine, the next second my BG no longer worked. It was just white. So I went over to body in my css and nothing had changed, the path was correct, the image was fine. weird...so I try putting my image into container and bam, that works? WTF, but oh well. Atleast it works. Then I realize their is a white border around my whole page after this, that sucks. So I try fixing it in the body, adding:
margin: 0;
padding: 0;

Did that work? eggplant no, nothing. No I'm stuck with a bullshit lime white border around my webpage and I can't find out why A. putting my image in the body doesn't work but putting it in the container does. And B. why this border won't go away. HELP ME PLEASE.

Website: www.unixcri.me
global.css: http://pastie.org/10471488

EDIT: Well i've got most of my problem fixed, adding this <link rel="stylesheet" type="text/css"
href="//cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> to my header template fixed most of it. But I am still having some margin problems on the bottom near the footer.

EDIT: Nevermind, this also messed up my margins again ^^^
try adding the following to the global.css of your theme and check.. 


body {
margin: 0px !important;
background: url(images/square/debut_dark.png) repeat !important;
}

you might have to Hard refresh (Ctrl+F5) the forum to see the changes...
(2015-10-10, 05:07 AM)mmadhankumar Wrote: [ -> ]try adding the following to the global.css of your theme and check.. 


body {
margin: 0px !important;
background: url(images/square/debut_dark.png) repeat !important;
}

you might have to Hard refresh (Ctrl+F5) the forum to see the changes...

Talking to a buddy I had tried that, still having the same problem :/
I'm starting to think it isn't the css
have you noticed that the global.css starts like this: http://unixcri.me/cache/themes/theme3/global.css

​body {
  margin: 0px !important;
what's that before "body".. could you remove those "​".. i believe there is a space at the beginning...
(2015-10-10, 06:07 AM)mmadhankumar Wrote: [ -> ]have you noticed that the global.css starts like this: http://unixcri.me/cache/themes/theme3/global.css

​body {
  margin: 0px !important;
what's that before "body".. could you remove those "​".. i believe there is a space at the beginning...

You're a saint! I completely overlooked that. It is fixed it! 
I knew it was something small and stupid.