2. The theme configuration
2.1 Basic properties
2.2 Theme configuration
2.3 Reset theme
3. The theme in practice: tips
3.1 New background image and
location
3.2 Different backgrounds for
sections and pages
3.3 How to change the position of
the menu
3.4 Printer friendly style sheet
In this chapter we only discuss the features that are specific
for this theme. The general features that apply to most themes
are treated in chapter Theme Frugal, paragraph 2.2 Theme configuration.
Please also check The module in practice and For
visually impaired. More Bazaar Style Style features can be
found in chapter Bazaar Style Style.
Screenshot of theme Axis in its basic configuration with the demonstration data:
Example of theme Axis:
#page {
background-image:
url('http://exemplum.eu/program/themes/axis/axis.gif');
}
The extra style information shows the location of one image axis.png that is used for this theme. Please see also section 4. The theme in action: tips on how to use Bazaar Style Style.
themes_axis_axis_gif.gif
|
themes_axis_blanco.jpg
|
The image blanco.jpg
can be used to create your
own image. It's size is 955x600 pixels. You can find the picture
by downloading it at:
http://yourschool.org/program/themes/axis/
If, for example you want to create an image with the same size as
the green area, you can take the following steps:
In the stylesheet style.css the image and its location are defined in:
#page {
margin: auto;
width: 955px;
height: 600px;
background-image: url('blanco.jpg');
background-repeat: no-repeat;
}
As you can see in the 'Extra style at area level' field, the image is overruled by:
#page {
background-image:
url('http://exemplum.eu/program/themes/axis/axis.gif');
}
When you upload your background image to the exemplum Area, the path, as example, could be:
#page {
background-image:
url('http://exemplum.eu/file.php/areas/exemplum/EPSbackground.png');
}
Notice that file.php is used. This program is necessary because the image is not located under the program directory but in the data directory.
The procedure is quite simple:
#page {
background-image:
url('http://exemplum.eu/program/themes/axis/blanco.jpg');
}
#page {
margin: auto;
width: 955px;
height: 600px;
background-image: url('blanco.jpg');
background-repeat: no-repeat;
}
#header {
width: 338px;
height: 580px;
float: left;
}
#menu {
width: 96px;
margin: 350px 8px 0px 0px;
height: 230px;
float: left;
font-size: 0.7em;
}
As you can see in the stylesheet, the page width is 955
pixels, the header width is 338 pixels and the menu is 92 pixels
wide with a margin in the menu of 8 pixels.
When we remove the menu we have to fill the 'gap' by enlarging
the header width to 338+96+8=442 pixels.
And finally we have to position the menu somewhere on in the
image. This is one way to do the trick:
/* Make header wider to fill gap */
#header {
width: 442px;
}
/* No margin, no float, absolute postion */
#menu {
width: 96px;
margin: 0px 0px 0px 0px;
height: 230px;
float: none;
position: absolute;
top: 150px;
left: 150px;
font-size: 0.7em;
}
We have overruled the margin to 0 pixels.The margin value functions as follows:
top right bottom left
margin: 350px 8px 0px 0px;
The 'float' property is set to value 'none'. With the property 'position' we set the desired position of the menu. The upper left corner of the menu is 150 pixels from the left and top sides of the browser window.
print2.css
,
change its content and put it in another place, for example
in: