Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Online help and CSS
Message
From
03/12/2001 07:09:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Online help and CSS
Miscellaneous
Thread ID:
00588635
Message ID:
00588635
Views:
77
I just started using, successfully, CSS in my CHM help file.

Cascading Style Sheets allow to apply the same style to all HTML files, and make changes globally.

All it takes is one additional line in each HTML file, for instance (erase extra spaces in the tags):
< link rel="stylesheet" href="mystyles.css" type="text/css" >
Sample css document (mystyles.css) (erase extra spaces in the tags):
< STYLE TYPE="text/css" >
H0 {}
H1 {color: #FF0000}
H2 {color: #00B000}
BODY {background-color: #80FFFF}
TD {background-color: #90EED0}
< /STYLE >
After that, any changes to background color, font size, etc., have to be done only once, in mystyles.css.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Next
Reply
Map
View

Click here to load this message in the networking platform