Generate HTML/CSS to wrap content to any shape or curve.
The CSS Text Wrapper allows you to easily make HTML text wrap in shapes other than just a rectangle. You can make text wrap around curves, zig-zags, or whatever you want. All you have to do is draw the left and right edges below and then copy the generated code to your website. Get to it!
Tested in Internet Explorer 6+, Firefox, Safari, Opera, and Netscape.
I've provided three different ways to apply the wrapping shape to your site. Each has it's benefits/drawbacks, but with these three you should be able to find a method that suits you.
This is the fully generated HTML/CSS code. It's really bulky, but it's the easiest to apply.
1. Copy and Paste this code into your site, right above the start of your text content.
This is the fully generated HTML with class names. Smaller markup, but you will need to have a stylesheet for this to work.
1. Copy and Paste this code into your site, right above the start of your text content.
2. Copy and Paste the text below into your site's stylesheet.
The most lightweight, applies two lines of javascript to generate the wrap markup. Requires loading of single small external javascript.
1. Copy and Paste this code into your site, right above the start of your text content.
2. Save and then upload this javascript onto your site.
Download: shapewrapper.js
Let use know what you think, or share with us what you've made on the CSS Text Wrapper Project page on the Idea Shower.