- Use a div to wrap the image and link
- vertical-align:top;
- set the width of the div: width:100px;
- Image:
- float:left
- margin:0
- padding:0
- Link
- margin:0
- padding:0
CSS:
.headerBottomLink
{
margin:0px;
text-decoration:none;
}
.headerBottomDiv
{
vertical-align:text-top;
width:100px;
}
.headerBottomLink:hover
{
vertical-align:text-top;
background-color:Green;
}
<div class="headerBottomDiv"><a href="Default.aspx" class="headerBottomLink"> View cart <img src="Images/System/cart.png" class="headerBottom" /></a></div>
No comments:
Post a Comment