Wrap text using CSS float and curved images

I found a cool CSS technique on this web page. The idea is have text wrap in a curvy, rather than in a block-like manner.

Here are the basic steps

  • Take an image and slice it into horizontal strips. Use the same height for each strip.
  • I use GIMP to make the image’s background transparent.
  • I saved the image as a PNG file.
  • Using CSS, each image is stacked on top of one another using “float.” I found that if you floating the images to the right, it looks less awkward.

Here is a sample I created using a similar technique, called “ragged float”.

This entry was posted in web design and development and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>