Log in

View Full Version : image positioning question!



pookeyblow
12-17-2009, 11:45 PM
Hi.

I have a little question here.

I have created an image (jpeg file) that I want to use as a border in a javascript box with inline html (Shadowbox (http://www.shadowbox-js.com)). I want to have the image at the top and at the bottom of the box.

This is how I want it to be:
http://n2.nabble.com/file/n4126799/Bilde%2B31.png
Remember that the border is a graphic!

How do I do this? Two divs with a background image?


Any help is appreciated!

djr33
12-18-2009, 07:45 AM
There are a lot of ways to line this up. You could position two divs over one another, you could just use a table (or better yet a series of divs that works like a table), OR, the best option, you can just use a normal background image and text over it. I suppose you may want it to scale with the page, in which case the border would scale oddly. For that, I'd suggest then the table-like divs approach.