Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Online help and CSS
Message
From
05/12/2001 12:02:54
 
 
To
03/12/2001 07:09:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588635
Message ID:
00589945
Views:
33
>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.

Just to comment that CSS can be done "inline" in the header section of the HTML file (no separate .css file), in the format you've used (ie with the STYLE tags). If linked as a separate .css file as you've done it, the the STYLE tags are not necessary.

It does make testing variations of style quick & easy.
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform