Wrapping text around an image is a common effect in print publications, but it was impossible to do on the Web - until CSS. This template wraps text around a simple ball shape, but you can get as creative as you want with the shape you'll be wrapping.
Windows
- Firefox and Mozilla 1
- Internet Explorer 5 and 6
- Opera 8.5 and 9
Macintosh
- Firefox and Mozilla 1
- Internet Explorer 5
- Netscape 7
- Safari 1
Internet Explorer works a bit differently than other more compliant browsers, so you'll need to test it in both IE and Mozilla or Safari before you post your page. While it doesn't work in Netscape 4, if your image is light enough, it does degrade gracefully, with the image acting as a background to your text.
- this layout uses a background image to be wrapped around
- all content that is wrapped is in the same div as the image background
- empty div or span elements are then used to force the text over to where you want it
- all the empty divs are 20px tall, you can make them smaller to get more granular effect, but this is where IE has trouble
- the easiest way to see the spacers is to add a border to them temporarily as you're testing
- Copy the CSS into a document named styles.css
- Copy the HTML into a file in the same directory
- Copy the image into the same directory, or create your own image
- Change the text to your content
- Publish the documents
I created a ball shape with Photoshop using a radial gradient from pale cream to dark red.
You are free to use any of the free Web templates here for personal or commercial designs, either in print or on the Web, excluding items for resale. You may not give away, sell, or redistribute the files in any way. Do not post these files on any another Web site, electronically distribute them, or include them in any package for distribution. If you find these files useful, please include a credit line or a link back to this site [http://webdesign.about.com/]. Terms of use last modified 8/29/2004.


