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

Header tutorial



This article is a tutorial which explains how to customize your header. You will:
  • Add an image in left the header
It is better to have already performed the first tutorial before this one.

The solution of this tutorial is in the docGenerator-tutorial-<version>.zip, in the headerTutorial directory.

Add the image to be put in the header

To use an image we must add it to the image files. For the sake of this tutorial we will ensure that we have an image of height 50px and add it, such as for example:
  <images>
     <image id="ball" url="ball.jpg" />
     <image id="hand" url="hand.png" />
  </images>

Insert the image in the header

We will insert the image in the header with the headerImg element:
   <header right="The right message">
      <headerImg id="hand" height="50px" />> My wiki
   </header>
Unfortunately the height of the header is too small for the image, and we have the following result:
tutoheader2
In the next step, we will customize the styleSheet of the header to have the correct height.

Customize the styleSheet of the header

We will add a Custom StyleSheet and use it for the hader to specify the height of the header.

Let's add the following CSS file:
  iframe.header {
    height: 70px;
  }
Now specify this CSS file in the generator GUI:
tutoheader3
Now we have the following result:
tutoheader

See also


Categories: tutorials

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