Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

12. Layout and Positioning: Arranging Elements > Putting the coupon on the page

Putting the coupon on the page

Now we’re going to get the Free Coffee Coupon on the page. Let’s start by creating a <div> for the coupon to go into:

image with no caption

Go ahead and add this <div> at the bottom of your “index.html” file, just below the footer. Because we’re going to position it, the placement in the XHTML will only matter to browsers that don’t support positioning, and the coupon isn’t important enough to have at the top.

Now let’s write the CSS to position the coupon:

image with no caption

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial