MyBB Codes

Full Version: Inserting image instead of rgb color in theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
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
(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
Reference URL's