Please forgive my ignorance but I am very new to this. I have a trial version of DW CS5.
My question is…
How can I place a paragraph or block of text on top of an image?
I think I can use absolutely positioned DIV’s and then use the Z index to set the visibility, but it seems that many people criticise the use of absolute positioning. How else can this be achieved?
Welcome to Site Point. Don’t worry about dumb questions. Do you have a link to your website so I can investigate further into what you are trying to accomplish?
Yes, welcome to the forums, drahcir sivad. (It this username your real name spelled backwards? )
I think I can use absolutely positioned DIV’s and then use the Z index to set the visibility, but it seems that many people criticise the use of absolute positioning.
This is the kind of situation where absolute positioning can be quite useful. AP is better used for small items like this than for the main page elements. So you can either use AP for this OR place the image on the <p> as a background image. That would be my preference, as it’s cleaner and easier, and it sounds like the image is not really content but decoration anyhow, so it’s better served up via CSS.
I don’t have a website to show you yet. I am still trying to create something. I am using one of DW’s CSS templates (3 column, header and footer). All I am trying to do is give regions of my sidebars a background with radius corners, drop shadow, and contoured colour effect. I assumed this was done by creating a suitable block of colour in photoshop or similar and then using it as a background image with the text sitting on top.
ralph, how do I “place the image on the <p> as a background image”? sorry if this is REALLY basic stuff.
Thanks
(and yes, my username is my real name backwards - not very imaginative I know)
Hm, I’m not sure how it would be automated in Dw, but if you are coding by hand (which is recommended) you would give write something like add a class to the paragraph element in your HTML, e.g.:
To help further with this, we’d need to see a real example of some sort—preferably a live link. We tend to talk in code here, I’m afraid, but we can try to talk you through this if you like.