5

Just to be clear, I am not starting with a rectangular text box and floating around an irregular image. I am creating an arbitrary shape then typing in text to best fit into this shape. Is there a jquery plugin or in html5 canvas? Is this even possible yet?

Slamice
  • 693
  • 1
  • 9
  • 25
  • There is one CSS3 module that defines this behavior (text filling custom shapes), but I don't remember which one it is... – Šime Vidas Jun 03 '12 at 13:55

2 Answers2

2

The working standard for HTML5 outlines the current features. The functionality you desire is not mentioned in the working standard, so you will need a script.

Creative Text Boxes looks to provide the functionality you need.

Eliot Ball
  • 698
  • 5
  • 11
0

If you're able to provide boxes which describe the shape, you might be able to use CSS3 Regions. Availability in your target browsers might be pretty poor though. This is probably the spec Šime mentioned.

SVG also claims support for this in an SVG 1.2 working draft. I'm not clear whether this has made it to a W3 Recommendation, or whether it's actually supported in browsers.

Update: the answers to this question suggest the SVG approach won't work right now.

Community
  • 1
  • 1