■ CONTENTS
xvi
■Chapter 16: Styling Forms, Grid Layouts, and Tables ........................................ 501
Styling the Categories Index Page ................................................................................ 501
Adding Space Between Table Cells .....................................................................................................502
Styling the Links .................................................................................................................................503
Styling the Category Edit Form..................................................................................... 505
Adding Vertical Space Using Margins .................................................................................................506
Adding a Grid Layout ..........................................................................................................................507
Styling Labels and Text Boxes ............................................................................................................509
Revisiting the Grid System: Adding Blank Columns Using Margins .................................................... 510
Styling Buttons ...................................................................................................................................511
Styling the Cursor ...............................................................................................................................512
Styling Error Messages .......................................................................................................................513
Styling the Other Forms in the Site .............................................................................. 514
Forcing Inheritance .............................................................................................................................515
Aligning Text .......................................................................................................................................518
Box-Sizing ..........................................................................................................................................520
Vertically Aligning Something with Another Element Containing Text ................................................524
Styling Defi nition Lists.................................................................................................. 526
Styling Tables ............................................................................................................... 529
Styling the Paging Links ............................................................................................... 533
A Sibling Selector Example: Styling the Create New Links .......................................... 535
Summary ...................................................................................................................... 536
■Chapter 17: Advanced CSS ................................................................................ 537
Styling the Navigation Bar ............................................................................................ 537
Transforming the Navigation Bar Content to Display Horizontally ......................................................539
Moving Elements Using Positioning....................................................................................................542
Styling Text .........................................................................................................................................544
Adding Images Using CSS ..................................................................................................................547
Floating Elements to the Right ...........................................................................................................550
Adding Animation to Links Using Scaling ...........................................................................................551