mhonarc-users

Cool thing you can do with CSS

2000-06-21 15:36:31
Hi,

It seems you can use external CSS with MHonarc and thereby enable huge
archives to be reformatted at any time by just changing a few lines of
code.

You can have a special sheet for each archive, or you can have one
master sheet for every archive. For example to use a master sheet called
myStyle.css the folder structure could be as follows:

myArchives
 archive_1
 archive_2

You then put the master style sheet in the "myArchives" folder and
reference from the child folders. You need to adjust settings for the
main index, the thread index and also the message page. For example to
set up the threads index, edit your "TIdxPgBegin" resource in your
resource file with the following:

<TIdxPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>$TIDXTITLE$</TITLE>
<LINK REL="STYLESHEET" HREF="../myArchives/myStyle.css" TYPE="text/css">
</HEAD>
<BODY>
<H1>$TIDXTITLE$</H1>
</TIdxPgBegin>

Do the same for the *PgBegin resources for the main index and message
page. You can then design your style sheet, shave it as myStyle.css and
put it in the myArchives folder.

If you then decide six months later you want to change the background
color and font of every message in every archive, just change a few
lines of text in myStyle.css

-- 
Gerry Hickman (London UK)
http://www.gerry1.dircon.co.uk/

<Prev in Thread] Current Thread [Next in Thread>