CSS with div to do irregular shape around the text

Source: Internet
Author: User
css| shape

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "><HTML><pead><title> irregular picture Wrapping text </title><style>html, body {margin:0px; padding:40px 0 0 100px; Background: #000; color: #fff; font-size:14px;} div{margin:0px; padding:0px; Border:0px;color: #fff; font-size:14px;} #content {background:url (http://www.alixixi.com/UploadPic/2007-7/200777205859453.jpg) no-repeat; margin:0px; padding:0px; border:0px; Line-height:155%}.blank {float:left; Clear:left; margin:0px 25px 0px 0px; font-size:9px;font-family:arial; Height:21px}</style></pead><body><div id= "Content" ><div class= "blank" width : 175px; " >1 </div><div class= "blank" style= "width:180px"; >2 </div><div class= "blank" style= "width:170px"; >3 </div><div class= "blank" style= "width:166px"; >4 </div><div class= "blank" style= "width:160px"; >5 </div><div class= "blank" style= "width:155px;" >6 </div><div class= "blank" style= "width:138px"; >7 </div><div class= "blank" style= "width:136px"; >8 </div><div class= "blank" style= "width:120px"; >9 </div><div class= "blank" style= "width:126px"; >10 </div><div class= "blank" style= "width:132px"; >11 </div><div class= "blank" style= "width:138px"; >12 </div><div class= "blank" style= "width:138px"; >13 </div><div class= "blank" style= "width:138px"; >14 </div> Moonlight is hazy <br/> and the breeze the wine to send <br/> Too many poems <br/> In a blind drink also empty <br/> and you drunk after lingering <br/> You remember < br/> Disorderly <br/> How only this song <br/> will let you softly together <br/> Drunk breeze <br/> Dream Mirror Virtual <br piano a song to send/> <br There is no feeling strong <br/> Romantic Yan Rong <br/></div></body></ptml>

[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]

Download the images used in the special effects:



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.