MyBB Codes
Inserting image instead of rgb color in theme - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42)
+--- Forum: General Support (/forumdisplay.php?fid=46)
+--- Thread: Inserting image instead of rgb color in theme (/showthread.php?tid=1489)


Inserting image instead of rgb color in theme - Mobius - 08-01-2010 10:53 AM

Hello, i've got something like this in global css of my forum:

.thead {
background: #303B4A;
color: #ffffff;
padding: 8px 8px 8px 15px;


I would like to insert an image to background instead of color, how it can be done?

edit:

I'm sorry for another issue I resolved by myself....Big Grin

background: url(image_direct_link);
i.e.
background: url(http://www.someimagehost.com/image.jpg);



RE: Inserting image instead of rgb color in theme - exdiogene - 08-01-2010 11:59 AM

May i suggest a better solution :

background: #303B4A url(http://www.someimagehost.com/image.jpg);

This way if the image is not available or do not cover enough room then the color would be used for the rest of the background...

Wink


RE: Inserting image instead of rgb color in theme - Mobius - 08-01-2010 12:10 PM

(08-01-2010 11:59 AM)exdiogene Wrote:  May i suggest a better solution :

background: #303B4A url(http://www.someimagehost.com/image.jpg);

This way if the image is not available or do not cover enough room then the color would be used for the rest of the background...

Wink

Great to know thatSmile it will be useful for my first own theme Smile thank youSmile