Templates - Add new style
Jump to navigation
Jump to search
Adding new style for your TNG Site
To add a new style for your TNG site, you should create the new style in mytngstyle.css. For example, the following is an example of adding a lighttext class to match the lightlink class.
.lighttext { font-family: Arial, Helvetica, sans-serif; color: #666; font-size: 14px; font-weight: bold; font-variant: small-caps; text-decoration: none; vertical-align: middle; }
And then, when you define your text, use
echo "<span class=\"lighttext\">This is a Test</span>";
or
$text[test] = "<span class=\"lighttext\">This is a Test</span>";
or better
echo "<span class=\"lighttext\">$text[test]</span>";
where
$text[test] = "This is a Test";
This will make plain text have the same format as your lightlink format, but won't change the format for the rest of the text.
This example was provided by Carol Thatcher Hall on the User List