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

Lesson 12. Creating a Photo Gallery > Positioning the <div> Elements

Positioning the <div> Elements

Because the images and captions will sit beside each other in rows, you will need to float the <div>. This can be achieved using float: left.

When the <div> is floated, it must be given a width. In this case, you will use width: 130px. This width can be changed to suit your needs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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