Project I: Browser Detection and Cloaking—Dynamically Generating Platform-Specific Content

Even though you may not have had much experience with CSS/DHTML, because there is only one font style specified on the homepage, it's pretty easy to figure out how to change the size of the problem text. We simply change the point size of the font attribute.

<style type="text/css">
     .homePageText {
     color : #000000;
     font : 9pt Arial, Helvetica;
     font-weight : normal;
     }
</style>

Unlike traditional HTML, where you change the font size by either adding or subtracting from a default size, with CSS/DHTML you can specify a point size for a font much as you would within a document editor such as Microsoft Word. Currently, the font is set to 9pt. After playing around ...

Get Essential JavaScript™ for Web Professionals, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.