travisbrown
Technical User
- Dec 31, 2001
- 1,016
I've been using graphics for links like below.
However, if I don't use float, the width collapses and you can't see the graphic. Is there a better way to do this? Specifically, I want to use anchors inline. eg:
The css is below.
Code:
<a href="javascript:;" class="buttons" id="manageto" ><span>Add/Manage Time Off</span></a>
However, if I don't use float, the width collapses and you can't see the graphic. Is there a better way to do this? Specifically, I want to use anchors inline. eg:
Code:
<li>text <a href="javascript:;" id="manageto" class="buttons"><span>link</span></li>
The css is below.
Code:
a#manageto.buttons {
background-image: url(/cops/_common_buttons/btn_manage_to.jpg);
background-repeat: no-repeat;
float: left;
height: 16px;
width: 76px;
}
a#manageto.buttons:hover {
background-image: url(/cops/_common_buttons/btn_manage_to_f1.jpg);
background-repeat: no-repeat;
}
a.buttons span {
display: none;
}