miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Don't know how to set a Background Image

Author haematom
Registered
#1 | Posted: 25 Oct 2010 17:41 
Hey guys,
can someone tell me, how to add a simple background-image for the default skin?
i've tried it, but it doesn't work.

the code looks like this:

.gbody{
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
background: #000000;
padding:10px;
}

so my background is just black.
when i add
"background-image:url(img/mybg.gif)
it does not do anything.

Yes, i'm a newbie, sorry for this stupid question.

Author tom322
Registered
#2 | Posted: 25 Oct 2010 20:23 
.gbody{
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
background:url("/img/mybg.gif")
padding:10px;
}

Author haematom
Registered
#3 | Posted: 26 Oct 2010 02:31 
hm, does not work.
it's just changing from a black background to a white background (but not in the frame of the page. there it is still black.)
it changes to white when i open the board separately (like *ww.mypage/board)

Author Paul
Lead Developer
#4 | Posted: 26 Oct 2010 04:35 | Edited by: Paul 
Why not try Google for a valid syntax?
The value of background-image should be in apostrophes.
Also I recommend to put a direct URL there, not a relative one. With full HTTP:// i.e. http://your_domain/forum/img/image.jpg or something like this.

Author haematom
Registered
#5 | Posted: 26 Oct 2010 05:26 
i've tried, but it doesn't work.
i just need to put the background-image command at the Body or anywhere else?

Author Paul
Lead Developer
#6 | Posted: 26 Oct 2010 05:43 
haematom:
i've tried, but it doesn't work

Then try it again and look up for your own mistake. Also make sure you are pointing to the image which really exists (put the URL to it directly in your browser and check if it's on place).

Author haematom
Registered
#7 | Posted: 26 Oct 2010 05:59 
ok, i got it. :)
I needed to edit the main_header.html and not only my css file.
thx for the help

Author Paul
Lead Developer
#8 | Posted: 26 Oct 2010 06:24 
I suppose you don't need to edit main_header.html for putting a CSS background.

I've just taken default CSS file from miniBB, bb_default_style.css, and modified the following:

.gbody{
font-family:'lucida grande',tahoma,verdana,arial,sans-serif;
background:#F9F9F9;
margin-top:0pt;
margin-bottom:10px;
margin-right:0px;
margin-left:0px;
background-image:url('./img/keypwd.gif');
}

It's that easy and 100% works. So I don't get why did you experience some problem, and what did you modified in HTML at the time you don't need to; but it's up to you...

Author haematom
Registered
#9 | Posted: 26 Oct 2010 06:46 
It seems that the guy from which i got the files has edited them before. (Don't know what he has changed at all)
so after i couldn't get the backround-image working by the css file, i looked into the sourcecode of the main_header. i found this style="background-image:url(xyz) and edited it by myself. now its working.

Author Paul
Lead Developer
#10 | Posted: 26 Oct 2010 07:28 
Well, if it was there, the question is not about "how to set a Background Image", but "how to set a Background Image in your modified file" ;)

Author haematom
Registered
#11 | Posted: 26 Oct 2010 10:28 
Hehe, ok :)

Author tom322
Registered
#12 | Posted: 26 Oct 2010 12:37 
I 'love' questions that can be fixed in 60 sec if user was more careful, but end up taking full resources of big brains like Paul, classic ;).

Specific miniBB Support Forums / Specific / Don't know how to set a Background Image Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB