Home › Forums › CSS › CSS Horizinal thing › Re: CSS Horizinal thing
May 26, 2011 at 1:07 am
#75292
matthewfowles
Member
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 {
clear:both;
}
/* put a left float on the a tag */
a {
color:#e90053;
text-decoration:none;
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.