Jump to content

Wrapping text in paragraphs around multiple images.


Recommended Posts

Hi,

 

I've been looking for an old solution but the website I used for this is offline. I know there are other places but Google can't help me so I need to ask you guys.

http://www.noupe.com/css/20-wicked-proof-of-concepts-for-better-use-of-jquerycss.html -> look for CSS Image text Wrap: I used this solution years ago but now that website is offline.  This is an old solution, there must be newer ones like this.

 

Basically, I've got multiple images stacked on the right hand side and want my paragraphed text to flow around these images. As soon as we use a <br /> element it wraps under the images though. I hope i can win time by not reinventing existing solutions by asking here first.

 

I hope this is clear - if not, I'll make you a quick concept drawing, just haven't got time right now as I'm at work.

 

thanks in advance

You need to place the images before the paragraphs, and then float them to either the left or the right. I.e.

 

<!DOCTYPE html">
<html lang="en-US">

  <head>
    <title>How to wrap text around images</title>
    <style type="text/css">
    #Basement {
 width: 300px;
}
    img {
 float:right;
 clear: both;
 margin: 1em;
}
    </style>
  </head>

  <body>
   <div id="Basement">
    <img src="Testing.png" alt="">
    <p>This example shows how to make text wrap around images. Floating the image to either the left or the right, should make the text wrap. You can then apply a margin to the images, to avoid ugly collusions with the text.</p>
   </div>
  </body>

</html>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.