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

Chapter 11. Layout with Styles > Making Elements Float

Making Elements Float

You can make elements float in a sea of text (or other elements). Unfortunately, browsers tend to be a bit buggy with the float property.

To wrap text around elements

1.
Type float:.

2.
Type left if you want the element on the left and the rest of the content to flow to its right.

Or type right if you want the element on the right and the rest of the content to flow to its left.

3.
Use the width property (see page 190) to explicitly set the width of the element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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