| |
 |
Hotline Question of the Month |
| by Sean Crawley |
|
| |
| Question: How do I use a Style Sheet to control the appearance of my CGI Applications?
|
Answer:
All mrc CGI applications use a style sheet (mrcstyle.css) by default to control some of the page appearances. For example, in a Multiple Record Retrieval you might want to change the colors of the odd and even rows or the color of the cell divider.
The style sheet (mrcstyle.css) is stored in the IFS directory /mrcjava/mrcclasses. One can access this directory by using the WRKLNK command or mapping a drive to this location on the IFS.
You can change the style sheet in one of the following two ways:
- You can replace this file with your own style sheet file by importing it to the IFS or by copying it from the mrc default style sheet. After you've created your own style sheet you need to update the CGI application's HTML source file (CGIHEAD) to reference the new style sheet.
To change the HTML source file member (CGIHEAD) to reference a different style sheet file, enter STRPDM on a command line and select 3 (Members).
Enter QHTMLSRC for the file and the library is your mrc data dictionary library. Then edit the HTML source file (CGIHEAD) by placing a 2 next to it.
In the HTML Source File (CGIHEAD) you'll see that the style sheet (mrcstyle.css) is being referenced from the 3rd line (See Figure 1). Now you can change the path of the href= to the location of your new style sheet.
Figure 1
0001.00 <!-- Begin mrc default header -->
0002.00 <!-- Style Sheet link here -->
0003.00 <link rel="stylesheet" type="text/css" href="/mrcjava/mrcclasses/mrcstyle.css">
-
Change the mrcstyle.css style sheet directly on the IFS. Note that the mrc staff doesn't support this method. We'd prefer you making a copy or importing your own file.
Have a hotline question of your own? Send an e-mail to support@mrc-productivity.com and let our product specialists help you!
|
|
|