HTML and CSS Reference
In-Depth Information
The $message variable outputs the actual message supplied to the Exception . The “back to home” link uses
$home_link to link to the home page.
Adding Error-Specific Styles
The error page requires a few small adjustments to the stylesheet in order to display things properly, so open up
assets/styles/main.css and add the following just above the media queries:
/* Error Styling
section#error { text-align: center; }
section#error p { margin: 0 auto 2em; }
Testing the Error Page
To verify that everything is working, visit the broken link ( http://rwa.local/not-real/ ) in your browser to see the
error page (see Figure 8-3 ).
Figure 8-3. The error page is now much easier to read
Search WWH ::

Custom Search