Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 7 Months, 2 Weeks ago MyBB background
#1
Solved: 4 Years, 7 Months, 2 Weeks ago
How do I get a background like MyBB?

Like the white background is still there around the content, but then another background. (just like mybb)

Cheers.
Reply
#2
Solved: 4 Years, 7 Months, 2 Weeks ago
is this what you mean?

#main {
background: #fafafa url(http://mybb.github.io/mybb.com/assets/images/p4a.png);
}
Reply
#3
Solved: 4 Years, 7 Months, 2 Weeks ago
I guess. Just want to make the content a white background with a grey border, and using an image repeat for the background.
There is no #Main though.
Reply
#4
Solved: 4 Years, 7 Months, 2 Weeks ago
the code above will repeat x and y,,,,and it should be the pattern white/gray you see at the sides..

To be clear,,, if you use the normal theme, add this to the body

background: #fafafa url(http://mybb.github.io/mybb.com/assets/images/p4a.png);

Or even better, open the link above, save the image, and upload it to your /image/
then
background: #fafafa url(/images/p4a.png);
Reply
#5
Solved: 4 Years, 7 Months, 2 Weeks ago
Well the "id" main doesn't excist in the default theme of mybb.

Gosh, I realy have to get into this again. I've had a forum before a while ago but forgot everything i learned o.0
Reply
#6
Solved: 4 Years, 7 Months, 2 Weeks ago
I did change the post above in the meantime, to include what you should do if you're using a normal theme
Reply
#7
Solved: 4 Years, 7 Months, 2 Weeks ago
I tried that already, though.

No results when adding it.
Reply
#8
Solved: 4 Years, 7 Months, 2 Weeks ago
.content in your case....

BUT normal the content would have a max width, and the body would then use the rest, and therefore normally this would be in .body and not in .content.
In .wrapper
I would set a max width, with margin: auto;

and set the background to body.

.wrapper {
min-width: 970px;
max-width: 1500px;
margin: auto auto;
width: 85%;
}
Reply
#9
Solved: 4 Years, 7 Months, 2 Weeks ago
Sorry, I don't understand =/
Reply
#10
Solved: 4 Years, 7 Months, 2 Weeks ago
First remove background at .content

global.css
from line 53

And then add the background to .body
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)