Results 1 to 16 of 16
Thread: Align text over centered image
Aug 17, 2011, 22:23 #1
- Join Date
- Aug 2011
- 0 Post(s)
- 0 Thread(s)
Align text over centered image
I'm wondering how I can line up text over a centered image.
Let's say I have an image that I want to center on a page, but have some text over part of the image (let's say 30px from the bottom, 200px from the right).
How can I accomplish this?
I see how to do absolute positioning on non-centered images, but all the centering methods I've tried mean the div surrounding the image spans the whole page, which makes offsets from the sides of the page, not the sides of the image, which is what I'm looking for.
Thoughts? Is this just indicative of bad design (overlaying text on fixed-width images).