I would like to have one div with two images. One is centered on the page and the other is all the way to the right.
I tried adding ‘align: center’ to the div, this centers the image fine. now when i add the other image and apply this: ‘float:right’ the second image moves slightly to the right. So right now its being centered between the image and the left side of the page and not the whole page.
<div class="navigator" id="basket_status2" align="center">
<a href="javascript:void(0);">
<img src="images/icon/check-out_empty.png" border="0" alt=""></a>
<span style="float: right; ><a href="javascript:history.back();">
<img src="images/back_button.png" border="0" alt="" /></a></span>
</div>
No need to deal with floats. Just position the buttons to your liking:
Demo: http://jsfiddle.net/NJsvM/