PDA

View Full Version : Help adding image to .box


Halcyon Image
Feb-02-2008, 10:54 AM
I'm trying to find a way to add an image to
//
.box {
background-color: #000000;
}//

Intstead of just having a color. I'd also be interested in
finding out how to add an html gradient. Please help.:dunno

richW
Feb-02-2008, 11:56 AM
I'm trying to find a way to add an image to
//
.box {
background-color: #000000;
}//

Intstead of just having a color. I'd also be interested in
finding out how to add an html gradient. Please help.:dunnoSomething like this to start off with. Add to the css section:

.box {
background-image:
url('http://www.smugmug.com/photos/199844762-M.jpg');
background-repeat: repeat-x;}

The image is a sample gradient from my site. You can make your own gradients here: http://tools.dynamicdrive.com/gradient/

Background css help: http://www.w3schools.com/css/css_background.asp

Need anymore help? Yell :)

Halcyon Image
Feb-02-2008, 01:40 PM
Hey RichW,
Thanks a million looks like this will work with some tinkering. One more thing? I'm having trouble making it specific to .homepage and it is showing up in all boxes. I really only want it to appear int the box directly underneath my slideshow. Any suggestions?

Thanks again.

Allen
Feb-02-2008, 02:42 PM
Hey RichW,
Thanks a million looks like this will work with some tinkering. One more thing? I'm having trouble making it specific to .homepage and it is showing up in all boxes. I really only want it to appear int the box directly underneath my slideshow. Any suggestions?

Thanks again.
Add the .homepage in front to make it specific.

.homepage .box {....

Halcyon Image
Feb-03-2008, 09:44 AM
Thanks Allen.