Assigning CSS Files to Web Pages
<< Controlling Web Page Appearance with CSS
<< Publishing Books Using XML Technologies
This section describes how CSS files are assigned to HTML Web pages.
CSS properties can be defined right inside the HTML element as shown in the following example:
<p style="{text-align: center;}">Show in the middle.</p>
But if you can also put all CSS properties into a file and assign that file to all of your Web pages to be more efficient. hyPub suggests that:
1. Store all CSS properties in a file called _hypub.css.
2. Assign _hypub.css to Web pages inside the "head" element with the "link" element as shown below:
<html> <head> ... <link rel="stylesheet" type="text/css" href="_hypub.css"/> </head> <body> ... </body> </html>
Sections in This Chapter
What Is CSS?
Suggested CSS Definitions for Book Web Pages