• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Border and Margin Controls > Wrapping Text Around an Element

Wrapping Text Around an Element

Early in the development of HTML, when the capability to have text flow around a graphic was added, designers everywhere were delighted. Finally, text could wrap around images. CSS takes this technique one step forward by letting you not only flow text around graphics, but also flow text around other blocks of text and text around tables (Figure 7.9). You accomplish this feat by using the float property (Code 7.7).

Code 7.7. The float property allows you to have either a block of text or a graphic float inside of another block of text. In this example, all images on the page are being defined as floating to the right in the window.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint