Reputation: 227
I am trying to keep my texts next to an image on the same horizontal level
I have something like
<div>
<img src='test.png'/>
<a href='#'>This is the test here</a>
</div>
it shows
-----
| | This is the test
| |
-----
here
-----
| | This is the test
| | here
-----
How do i fix this? thanks!
Upvotes: 1
Views: 66
Reputation: 44581
div {
clear:both;
float:left;
}
div img{
float:left;
}
div a{
float:left;
}
Upvotes: 1