Previous: Images, Up: HTML export


10.2.5 CSS support

You can also give style information for the exported file. The HTML exporter assigns the following CSS classes to appropriate parts of the document - your style specifications may change these:

     .todo           TODO keywords
     .done           the DONE keyword
     .timestamp      time stamp
     .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
     .tag            tag in a headline
     .target         target for links

The default style specification can be configured through the option org-export-html-style. If you want to use a file-local style, you may use file variables, best wrapped into a COMMENT section at the end of the outline tree. For example1:

     * COMMENT html style specifications
     
     # Local Variables:
     # org-export-html-style: "   <style type=\"text/css\">
     #       p {font-weight: normal; color: gray; }
     #       h1 {color: black; }
     #   </style>"
     # End:

Remember to execute M-x normal-mode after changing this to make the new style visible to Emacs. This command restarts org-mode for the current buffer and forces Emacs to re-evaluate the local variables section in the buffer.


Footnotes

[1] Under Emacs 21, the continuation lines for a variable value should have no `#' at the start of the line.