[generator] Different Font Styles for Different Elements

Jul 26, 2002 16:16

Customization of font size under the system Generator style template is somewhat complicated by special structural details of the Generator style. For the recent activity ('lastn') view, font size can be set for various elements of the page via the following override, which also incorporates universal font face setting. This will allow you to use the same font face throughout but specify different font sizes for each element.--

LASTN_HEAD<=

<=LASTN_HEAD
The font sizes shown in yellow can be customized to the user's individual taste.

If a font size is desired universally for all elements, a much simpler override can be used and can be found here: http://www.livejournal.com/support/faqbrowse.bml?faqid=12

If you would like to also customize the font face that is used for individual elements then you would remove the section for the unviersal font face and instead define the font face individually for each element by adding the line

font-family: "Century Gothic", "Arial", "Helvetica", sans-serif;

to each element. You can, of course, select what ever font face you desire, the ones used here are only an example.

If you would like to specify the font face individually for each element then your override would look like the following.

LASTN_HEAD<=

<=LASTN_HEAD
This override gives you powerful control of the individual elements of your journal display. In addition to specifing the font size and font face you can specify several other things about the appearance of each section by adding the appropriate line into the override for the desired section similarly to how the font face line was added to the original font size definition. Some of the different things you can add are listed below.

To add:

Insert the line:

Bold

font-weight: bold;

Italics

font-style: italic;

Small Caps

font-variant: small-caps;

Underline

text-decoration: underline;

Variable Reference:

LASTN_HEAD

Additional References:

  • Merging Your GLOBAL_HEAD Note the techniques described can be used to merge any variable, including LASTN_HEAD.
  • What are overrides? How do they work?


  • Only one override is permitted for each specific override block.
    If you are currently using a LASTN_HEAD override, then that override would need to be revised to reflect changes presented here or otherwise merged.
    contributed by macheide

    fonts, - generator, changing font

    Previous post Next post
    Up