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. Trackbacks are closed, but you can post a comment.

2 Comments

  1. Posted August 25, 2010 at 11:57 pm | Permalink

    thanks for your tutorial. but how can we make arc text using css

  2. Posted August 26, 2010 at 7:13 am | Permalink

    Paul, I wish I had an answer. If you find out, feel free to share some links here about it. The best I could find was located here. None of the techniques filled me with confidence.

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>