Web Hosting Talk







View Full Version : Non-repeating bg w/ non-repeating bg


Cress
03-10-2005, 12:54 PM
I have exported a sliced psd into a HTML file and in one of the TD cells, I am trying to have a non-repeating backgroud in the cell. That's not a problem, but when enough content is added to increase the size of the cell vertically, I'd like to have another image set as a repeating background to continue the image.
To visualize it better, I want to use these images.

huec.lsu.edu/second-template_Slice-16.jpg

This is the non-repeating background.

huec.lsu.edu/bgright.jpg

And this is the background I would like to have repeating off of it once more content is added. Anyone know a way?

I was thinking maybe some kinda mix of the html bg with an inline css, but I have no idea how to pull that off correctly. All help is appreciated.

the_pm
03-10-2005, 01:22 PM
Welcome to WHT Cress :)

This should be very simple to accomplish. Try making the second background the repeating element in the table cell. Then, place a <div> inside the cell and put the non-repeating background there. Then type inside the <div>. Problem solved.

FWIW, it appears you could achieve almost the same effect with a single pixel sliver repeated on the x axis with a background color that matches the bottom of the gradient. It'll take about 1/10 of the file space, and it would likely look almost the same. But that's purely speculative, since I have no idea what the design looks like when it's fully put together :)

Cress
03-10-2005, 01:39 PM
Thanks for welcoming me.

That fixed me up pm, thank you very much. Haven't look at using 1 pixel of silver repeating on the x, but it definately sounds like it is worth checking out.

Thanks again.

the_pm
03-10-2005, 01:45 PM
You're welcome, Cress. Happy to help anytime :)