Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with adding an image to the .css file...


santacruz04

Recommended Posts

I want to change the back ground for an info box to that of an image file. How would I go about doing this? Here is the code I tried to use but it doesnt work ::

.infoBox {

 background: #ffffff;

}



.infoBoxContents {

 background: "http://www.frenik.com/rep/catalog/images/boxes/background.gif";

 font-family: Verdana, Arial, sans-serif;

 font-size: 10px;

}

 

*If you have any suggestions please dont hessitate*

Link to comment
Share on other sites

This should work

.infoBoxContents {

 background: url(http://www.frenik.com/rep/catalog/images/boxes/background.gif) no-repeat;

 font-family: Verdana, Arial, sans-serif;

 font-size: 10px;

}

This may also work (depends on where your .css file is)

background: url(images/boxes/background.gif) no-repeat;

Perdure - Transparent Object Relational Persistence
Link to comment
Share on other sites

Thank you for your prompt response to my problem.. I just have one more question... view my web site... you will see that I got it to work on a couple of my boxes' *havent finished doing the rest yet* but how do I get rid of that white box that is around my contents in the info box?

Link to comment
Share on other sites

I went to your 'Future 3D' site....great job on creating new boxes!

 

What snapshot of OSC do you have?

 

Can post the code that allows you to update the boxes?

 

Is it the same as previously posted in this thread?

Link to comment
Share on other sites

Thank you for the compliment btw. And hey I have a post you could check out, it tells you *in my words* how to do what I did to the info' boxes, You can PM, E-mail, AIM, YAHOO, or ICQ me if you need help with this. *searching for the contribution for the infobox thing right now*

 

But untill I find it, here is the post to check out.

 

http://http://www.oscommerce.com/forums/viewtopic.php?t=41709

Link to comment
Share on other sites

Thank you for the compliment btw. And hey I have a post you could check out, it tells you *in my words* how to do what I did to the info' boxes, You can PM, E-mail, AIM, YAHOO, or ICQ me if you need help with this. *searching for the contribution for the infobox thing right now*

 

But untill I find it, here is the post to check out.

 

http://http://www.oscommerce.com/forums/viewtopic.php?t=41709

Link to comment
Share on other sites

Thank you for the compliment btw. And hey I have a post you could check out, it tells you *in my words* how to do what I did to the info' boxes, You can PM, E-mail, AIM, YAHOO, or ICQ me if you need help with this. *searching for the contribution for the infobox thing right now*

 

But untill I find it, here is the post to check out.

 

http://www.oscommerce.com/forums/viewtopic.php?t=41709

Link to comment
Share on other sites

Hey Santacruz;

 

I took a look at your site, but didn't see what you were referring to about the white boxes or images. But did you notice that all your info boxes don't have any headings in them? Just thought I'd mention it.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...