user544079
user544079

Reputation: 16639

Remove line breaks from images with a hyperlink without using table cells

I have a <div> containing images as

<div>
   <img src="pic1.jpg" />
   <img src="pic2.jpg" />
   <img src="pic3.jpg" />
</div>

Now whenever I put a hyperlink over any of the images, it causes a line - break.

I have tried adding display:block; display:inline; float: leftto the images. But the line break still occurs.

Using a <table> is not an option in this case . How do I fix the line - break without using a <table>

Upvotes: 0

Views: 788

Answers (1)

Jonas R&#248;ssum
Jonas R&#248;ssum

Reputation: 365

Try this: float: left; clear: none;

Upvotes: 2

Related Questions