The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Horizinal thing Re: CSS Horizinal thing


I’m not sure about the whole div and image inside the anchor but what you need to do is float the a tag so they are side by side.

If that is the html code then you need to have a div with a class of clear at the bottom and the css should look like this:

.clear {

/* put a left float on the a tag */

a {
float: left;

/* include this if you dont want the image to jump when the color border gets added */

a img {
border: 7px solid transparent;

a:hover img {
border: 7px solid #e80052;


I have tested and this should work!

Hope it helps.