<<< prev | next >>>

CIF : Coding Standards : Use Of Style Sheets

All CIF modules must adhere to the default CIF look and feel which permits cards from different sources to combine with one another in a visually-coordinated way. The default CIF look and feel is designed to permit display within a wide range of wrappers without drawing attention to itself on a design level. CIF modules may optionally use style sheet techniques to change the appearance of CIF modules using site-specific Cascading Style Sheet (CSS) parameter files so long as these site-specific parameters are kept external to the actual CIF cards. Because style sheets are not universally supported by all browsers, and because implementations of style sheet tags are vendor-specific, use of style sheets reduces the effectiveness of CIF modules as a universal display medium. To minimize this impact, CIF standards use a subset of CSS tags which are known to perform robustly on common web browsers now in use. CIF modules are designed to display clearly even if no CSS parameter file is available to them. In such cases they display a default look and feel which is based on an extremely simple and robust subset of HTML. This "failover" mode of CIF will engage automatically if the user is surfing the net with Javascript disabled, is using a browser that does not support CSS, or is viewing a set of flash cards which have no associated style sheet.

Content for this flash card was provided by Growth House, Inc. For full credits click here.