View Full Version : text alignment question

05-01-2009, 01:13 AM
Hi I am just learning dreamweaver have a question. I created a div area with an image as a background. The image looks like buttons and I want to place text over the image and have text links. I cannot get the text centered vertically with the button picture. The text shows up at the top of the image and if I include a <br> the text is to low. I tried putting a blank space before the break with a tiny font size to only lower it a little, and in the live view it worked but when I view it in a browser, it is too low again. I hope that made sense.

Thanks for your help,

05-01-2009, 01:59 AM
I assume the text is links. Add a style to the links with some padding or margin above the link to force it down.

05-01-2009, 08:39 PM
If I add padding or magin, it also lowers the background image. Is there a way to only lower the text? I tried to add a css rule for the text but it does not work or I do not know how.


05-01-2009, 08:47 PM
apply the padding around the link (or text) not to the div