Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

Elements to CSS selectors



This article explains the correspondance from elements to CSS selectors. It is useful when you want to customize the CSS StyleSheets for the HTML result, or if you want to add a style attribute to an element.

For example, the pre and source elements will both generate a corresponding "pre" element in HTML.

Attributes of a Stylable element

A stylable element has the optional following attributes to specify its style:
  • "class": allows to sepcify the CSS StyleClasses of the element. It will be added to the existing styles which might already have been set by the generator for the element
  • "style": allows to specify the inline "style" of the element
These two attributes are not exclusive. For example:
   <table class="myStyle" style="style="font-size:12px;" />

Correspondance

Only the elements which have a direct correspondance are described below.

CSS correspondance
Element CSS Selector Support Style classes Comments
empty BR No -
br BR No -
hr HR No -
code CODE Yes -
pre PRE Yes -
source PRE Yes -
blockquote BLOCKQUOTE Yes -
term DT and DD No -
wikipedia A No -
mediawiki A No -
video IFRAME No -
audio IFRAME No -
javadoc A No -
qtdoc A No -
javadoc A No -
apidoc - No Can be customized by using the API documentation configuration
ol OL Yes -
ul UL Yes -
li LI Yes -
img IMG Yes -
box DIV Yes -
resource A No -
title Hi Yes -
ref A Yes -
catRef A No -
table TABLE and CAPTION[1]
CAPTION is used for the table caption if it exists
Yes -
tableHeader TH Yes -
cell TD Yes -
term DL, DT, and DD Yes -
leftMenu DIV Yes -

Notes

  1. ^ CAPTION is used for the table caption if it exists

See also


Categories: configuration

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.