I have on my site 4 buttons that allow visitors to follow my Facebook/FlickR etc. It looks like this at present:
www.robbiekhan.co.uk
Now I wanted to give mouse hover effects to the image buttons and I have done this using some simple CSS, 2 button example:
But when viewing in any browser it looks like this:
As you can see the buttons are not sitting on the same line but on a new line, hover effect works perfectly however which is great because it means the code works I just need all the buttons sitting on the same line!
If anyone can help that would be most awesome
Edit*
I solved it I guess after some Googling, for anyone interested I added float: left; to the CSS for each button and it sorted itself out - this makes all the images left aligned on the page which actually looks more logical than centre aligned and it's all good!
www.robbiekhan.co.uk
Now I wanted to give mouse hover effects to the image buttons and I have done this using some simple CSS, 2 button example:
Code:
<p align="center">
<style type="text/css">
.FlickRButton {
display: block;
width: 58px;
height: 58px;
background: url('images/button_fr.png')
bottom; text-indent: -99999px;
}
.FlickRButton:hover {
background-position: 0 0; background-color: transparent; border-style: none;
}
</style>
<a class="FlickRButton" href="http://www.flickr.com/photos/robbiekhan/" target="_blank">Leaf</a>
<style type="text/css">
.dAButton {
display: block;
width: 58px;
height: 58px;
background: url('images/button_da.png')
bottom; text-indent: -99999px;
}
.dAButton:hover {
background-position: 0 0; background-color: transparent; border-style: none;
}
</style>
<a class="dAButton" href="http://mrk.deviantart.com/" target="_blank">Leaf</a>
</p>
But when viewing in any browser it looks like this:

As you can see the buttons are not sitting on the same line but on a new line, hover effect works perfectly however which is great because it means the code works I just need all the buttons sitting on the same line!
If anyone can help that would be most awesome

Edit*
I solved it I guess after some Googling, for anyone interested I added float: left; to the CSS for each button and it sorted itself out - this makes all the images left aligned on the page which actually looks more logical than centre aligned and it's all good!
Last edited: