Naming Convention pages placed in CSS

Attribute(s)

  • Naming Convention

    Description

    When a CSS is placed in a page, the name of this page must represent this: CSS-<Name>. Another reasonable option is <Name>.css, matching the convention with which it will be seen over the web.

    Motivation

    Naming the page this way, will identify the page as being a CSS container.
    Note, you may want to use a page as a CSS container as this design element will load more quickly as a form (or document). However an other option is to have a CSS file in the shared (image) resource library Those design elements do cache and load even faster.

    Example / Details

    When a page is a CSS container use the following format:
    CSS-<Name>
  • Gerhard Heide 11 Nov 2008 06:36:27 AM CSTUsing Pages as CSS - Containers gives the opottunity to add computed Styles - e. g. Colors from an Profil document. Doing this although proofs: Browser do cache CSS - Pages.
    Marco van Oostende 09 Sep 2008 08:00:08 AM CDTI don't think it is smart to add css to a page. As a result, the content is reloaded every time the page is accessed. It is intended to be cached. Also, changes to the css require a design update.