Black Pearl

Changing background in black pearl - Black Pearl

Changing background in black pearl

by brothertaylor » Tue Jan 31, 2012 10:06 am

I am building a website http://www.shootextreme.com and am trying to get my forum to match my template on my site. Is there a way to add a background (jpg or png file) into the background?

thanks.
brothertaylor
Registered User
Posts: 6
Joined: Wed Jan 25, 2012 7:34 pm

Re: Changing background in black pearl

by Joshua203 » Tue Jan 31, 2012 11:13 am

Try the stylesheet

Code: Select all

body {
   /* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */
   font-family: Verdana, "Trebuchet MS", "Lucida Grande", Helvetica, Arial, sans-serif;
   color: #CCCCCC;
   background: #111111;
   font-size: 62.5%; /* This sets the default font size to be equivalent to 10px */
   margin: 0px 10px 0px 10px;
}


Replace with

Code: Select all

body {
   /* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */
   font-family: Verdana, "Trebuchet MS", "Lucida Grande", Helvetica, Arial, sans-serif;
   color: #CCCCCC;
   background:  #111111 url('./images/XXXX.png') top left no-repeat;
   font-size: 62.5%; /* This sets the default font size to be equivalent to 10px */
   margin: 0px 10px 0px 10px;
}


Copy the png to the css image directory (or adjust the path) and let me know how it looks (cause I have not tested or used my brain :lol: )

And ofcourse rename the XXXX.png to the actual name of your image too
Last edited by Joshua203 on Mon Feb 06, 2012 4:58 pm
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Changing background in black pearl

by Andrew Knox » Mon Feb 06, 2012 2:44 pm

I tried your suggestion and it worked perfectly thanks.
My background image is 100x100 and it appeared in the top left corner only so I removed the 'top left no-repeat;' part and now the whole background is covered and matches the website.

Is just removing that bit the correct way to do it or is there something else I need to do?
'
Andrew Knox
Registered User
Posts: 17
Joined: Mon Mar 03, 2008 9:47 am

Re: Changing background in black pearl

by Joshua203 » Mon Feb 06, 2012 5:12 pm

If it's perfect for you then no, however I do see different changes to the suggested code than you describe ..some good but at least one bad one.

Maybe posting the full code of that part would be a better idea to describe? (you really should't make me hunt for your stylesheet :roll: )

Anyway whatever you do, the example doesn't know your image so you were right to play with the position and repeat, the bad part of what you did is where you removed the colour (it's now flashing white on enter until it has loaded the image) ...not a good idea unless that's what you like ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Changing background in black pearl

by Andrew Knox » Tue Feb 14, 2012 9:04 am

Oh, I thought it couldn't have been that easy. Do you mean I should leave the background colour in the code and the image will cover it when it loads?
Andrew Knox
Registered User
Posts: 17
Joined: Mon Mar 03, 2008 9:47 am

Re: Changing background in black pearl

by Joshua203 » Tue Feb 14, 2012 10:20 am

If you don't want it to flash white ...yes I would give that a try ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203