I have a problem with floating text around a list of images.
My Goals:
- At the begining of the content-div is a list of image tags.
- The Images have everytime the same size.
- Each image has it´s fixed position on the page.
- The text should start at the top of the page.
- The text should float around the images.
HTML
<div class="content">
<img src="image_1.jpg" class="image_1">
<img src="image_2.jpg" class="image_2">
<img src="image_3.jpg" class="image_3">
<img src="image_4.jpg" class="image_4">
<img src="image_5.jpg" class="image_5">
<!-- some text -->
</div>
CSS
.content{ position: relative; width: 500px; margin: auto; }
img{ position: absolute; width: 250px; }
.image_1{ top: 20em; left: 0; }
.image_2{ top: 70em; right: 0; }
.image_3{ top: 120em; left: 0; }
.image_4{ top: 170em; right: 0; }
.image_5{ top: 220em; left: 0; }
The positions of the images is perfect, but the text is not floating around them.
Is it possible to get this done with css and if it is possible how to do it?