Hi

I have some pictures and I want to have a piece of text, like a label, for each one. I have tried floating both image and paragraph (<p>) and then assigning a negative margin to the <p> and setting its z-index: 100

but it continues to say below the image.

how do I get it ontop?

thanks
lworks

Recommended Answers

All 3 Replies

Member Avatar for Rhyan

Post some code that we can read, however, it should look something like
<div>
<p>Your text here</p>
<img.../>
</div>

Well if you had set the p's z-index to 100 then it should work but anyway you could just add text with an image editor(Gimp, inkscape).

set position: absolute for <p>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.