This is the HTML:
<h2>
Log in
<a onclick="doSomething()" href="#" class="float-right"> </a>
</h2>
This is the CSS:
.float-right {
float: right;
background: url(img.png);
width: 10px;
height: 10px;
text-decoration: none;
}
So this should make the .float-right
element float to the right of the text in the header, but in IE7 it doesn't! I don't care about IE6, I just have to get this working in IE7 and newer.