March 8th, 2013, 06:53 PM
Overlapping two divs?
Hope someone can help me out. I was wondering if it was possible to overlap two divs. Basically I have one div that is an image with some white space, that I'd like to move some text inside of. Is this possible with CSS?
I know I can do this with photoshop and image manipulation but I'd rather keep the text as text for SEO purposes.
Thanks for your help!
March 8th, 2013, 08:02 PM
Unfortunately, since I'm new, I can't post a URL with an example, but you can absolute position the text inside a parent div. I didn't use two divs, but here's a quick example.
<img src="image_url" />
The parent div has an id #box with relative positioning. Inside that div, I have an image and a paragraph. I just absolute positioned the paragraph over the image.
You'll have to adjust the top/left values depending on where you want to position it.