CSS wrap text around centred image

前端 未结 3 1779
春和景丽
春和景丽 2020-12-19 06:09

How to wrap a text around a centered (round) image like this:

\"http://i.stack.imgur.com/kgyCm.jpg\"

I

3条回答
  •  执笔经年
    2020-12-19 06:32

    I don't think it's possible since it relies on float and you can't float to the middle/center of the page.

    Here's what I came up with: [old fiddle]/5Lxc444p/8/

    If you put the width style on the actual circle it works better than on a parent div.

    Also, here's a good writeup on css shapes: http://www.html5rocks.com/en/tutorials/shapes/getting-started/

    EDIT:

    Here's an updated fiddle for the 2 column layout with absolute positioned circle. http://jsfiddle.net/5Lxc444p/11/

提交回复
热议问题