java buttons

R

r.schacht

Hi,

I am using the following code to create buttons. The code works fine and
places the text on the imported gif file. The only problem is the text is
too low. I need to add some code to move the text up just a little instead
of having it in the center of the gif file.

Does anyone know of any code to move the text up just a little?

Thanks in advance.


document.write('<input class="dynamic" name=b5 type="button" value="Contact
Info" style="height:50;background:url(gif/bottom_off.gif)"
onMouseOver="DynamicOver(4)" onMouseOut="DynamicOut(4)" onclick="Link(4)">')
 
R

r.schacht

Thanks, that is just what I needed.

r.schacht said:
I am using the following code to create buttons. The code works fine and
places the text on the imported gif file. The only problem is the text is
too low. I need to add some code to move the text up just a little instead
of having it in the center of the gif file.

Does anyone know of any code to move the text up just a little?

Try adding this CSS declaration to the style attribute:
padding-bottom:10px;

/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top