I have some buttons and I want words on them. But the tops of the words seem as though they are glued to the top of my buttons.
So, here's what I have:
HTML
and CSS (external)
I added an attachment so you can see what it looks like.
Thanks all!
So, here's what I have:
HTML
Code:
<ul id="navbutton"> <li style="margin-top:5px"><a href="another.html">Name of my button</a></li> <li style="margin-top:5px"><a href="another.html">Hello</a></li> </ul>
Code:
#navbutton a {
display: block;
background: url(button.gif);
text-decoration: none;
text-align: center;
font: 0.7em Tahoma, sans-serif;
font-size: 16px;
font-padding:5px 5px 5px 10px;
font-weight: bold;
float: center;
width: 150px;
height: 45px;
}
#navbutton a:hover {
background: url(buttonn.gif);
width: 150px;
height: 45px;
}
I added an attachment so you can see what it looks like.
Thanks all!
Comment