Current time: 04-28-2024, 01:30 AM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[18.118.150.80], connected from Cambridge, Massachusetts United States
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting image instead of rgb color in theme
08-01-2010, 10:53 AM (This post was last modified: 08-01-2010 11:14 AM by Mobius.)
Post: #1
Inserting image instead of rgb color in theme
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);

Mobius's signature [Image: dsuserbar.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2010, 11:59 AM (This post was last modified: 08-01-2010 12:01 PM by exdiogene.)
Post: #2
RE: Inserting image instead of rgb color in theme
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

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2010, 12:10 PM (This post was last modified: 08-01-2010 12:10 PM by Mobius.)
Post: #3
RE: Inserting image instead of rgb color in theme
(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

Mobius's signature [Image: dsuserbar.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Image resizer deradian 0 761 10-19-2011 12:42 PM
Last Post: deradian
  Changing the color of private shout in MyShoutbox Mobius 5 5,261 05-11-2011 09:35 AM
Last Post: Mlody
  Stats Image skiilz 34 6,150 05-25-2010 07:27 PM
Last Post: php4pro

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com