On Tue, 1 Jul 2003, daniel wrote:

> Hi all,
> 
> I've tried a few ways but can't seem to get MRTG to use a Style Sheet.  
> What's the best way to it and use the same CSS in Indexmaker?

I have been using MRTG since the mid-Nineties.  It was always a bit of a
chore to make each new version of MRTG have the corporate standard "look and
feel".  Its gotten easier in recent years.

  Extension[_]  shtml
  AddHead[_]    <--#include virtual=".../mrtg-addhead.shtml" -->
                
                The file defines your JavaScript routine that selects the
                style sheet based on user's browser and any local mods to
                the corporate style sheets.

  BodyTag[_]    <--#include virtual=".../mrtg-bodytag.shtml" -->

                The tag is meant for defining the body object but can be
                used for page layout if you start with ">" and omit the
                closing ">" on the last HTML declaration.
        
  PageFoot[_]   <--#include virtual=".../mrtg-pagefoot.shtml" -->

                Close out any <div> added with BodyTag and add standard
                footer.

Now, if you really want to use cascading styles, you will next need to
modify /usr/local/mrtg-2/bin/mrtg to use classes.

I never got around to contributing the changes to mrtg for cascading style
sheets as I also changed the table layout under the graphs so that they
would be the same width as the graphs being generated.  I didn't want to
offend Tobi who has done a wonderful job in making MRTG available.

Merton Campbell Crockett



-- 
BEGIN:                          vcard
VERSION:                        3.0
FN:                             Merton Campbell Crockett
ORG:                            General Dynamics Advanced Information Systems;
                                Intelligence and Exploitation Systems
N:                              Crockett;Merton;Campbell
EMAIL;TYPE=internet:            [EMAIL PROTECTED]
TEL;TYPE=work,voice,msg,pref:   +1(805)497-5045
TEL;TYPE=fax,work:              +1(805)497-5050
TEL;TYPE=cell,voice,msg:        +1(805)377-6762
END:                            vcard

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to