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

15.6. Alignment

Depending on the properties assigned to your box elements, you can quite often end up with boxes that don’t stretch to fill the entire width or height of the parent and, as a result, empty spaces. Whether that empty space appears horizontally or vertically depends on the parent’s box-orient value, but where that space appears in relation to the children can be set on the parent by using the box-align property. Here’s the syntax:

E { box-align: keyword; }


  

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