Expand | Collapse

◀ 22. User customizations24. JavaScript support ▶

23. CSS formatting

23.1. Namespace policy

All IDs and class names created by the xhtml2to1 stylesheets, not coming from the original XML documents, must be prefixed with an underscore (“_”). However, the underscore is not allowed to appear literally as part of a CSS2 identifier; it must be escaped.

23.2. Collapse-expand toggle

This styles the apperance of the collapse-expand toggle on each sub-section of a page.

      a.\_collapse-toggle {
        text-decoration: none;
      }
    

23.5. Basic HTML display

      html, body {
        margin: 0;
        padding: 0;
        background-color: white;
        font-family: sans-serif;
      }
      
      h1, h2, h3, h4, h5, h6 {
        font-family: serif;
      }

      p {
        text-align: justify;
        margin: 0.5em 0.50em 0.5em 0.75em;
        padding: 0;
      }
    

23.6. Extension elements

      span.xml-element {
        padding: 0.1em 0.25em 0.1em 0.25em;
      }
      
      b.tag-name {
        padding-left: 0.1em;
        background-color: rgb(75%, 95%, 75%);
        border-left: thin dashed black;
      }
      
      code.markup {
        font-family: serif;
        font-weight: normal;
      }
      
      kbd.file {
        font-family: serif;
      }

      pre.xml {
        font-family: serif;
        background-color: rgb(95%, 95%, 95%);
      }

      dl.cases dt {
        background-color: rgb(95%, 95%, 95%);
      }
    

23.7. Page layout

      div#\_body {
        margin-left: 20%;
        padding-left: 2%;
        padding-right: 2%;
      }
      
      div#\_navigation-panel {
        margin: 0;
        padding: 0;
        width: 20%;
        left: 0;
        top: 0;
        bottom: 0;
        font-size: 80%;
      /*  float: left;*/
        position: fixed;
        overflow: auto;
        background-color: white;
      }



    

Formatted using xhtml2to1 by Steve Cheng.