TimYang.com ::: The Geek Blog

Saturday January 08

CSS Image Text Wrap Tutorial

How to achieve the text wrapping effect in websites like they have in magazines. Frankly, it seems to be too much trouble to go through. And it only works with static content, not dynamically-generated content.

Basically you create multiple and measured div blocks on the side of the column which you want to wrap the text around. You have to measure every single edge and be accurate with it and create a div just for that.

The only good news is that it maintains the shape well even when you increase or decrease text size in browsers.



Leave a Comment

Tim Yang © // Email Me // XHTML 1.1 // CSS valid // 508 Passed // My PDF resume