Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Online help and CSS
Message
De
05/12/2001 12:02:54
 
 
À
03/12/2001 07:09:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00588635
Message ID:
00589945
Vues:
34
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform