StyleMaintaining a consistent look and feel.ConventionsSome things tend to be a de facto standard on web pages or are strongly recommended by the W3 committee or usability gurus. Unless there is a very important reason to do something different I try to follow the good advice and practice.
House StyleThe style is controlled using a common template for all pages and by linking to Cascading Style Sheets. These are the main features of the content text set by the template and style sheets.
Locating the styleSpecial items and dynamic HTML are controlled using styles (changed using JavaScript). Some styles work throughout the site in all of the sections. They are set in the "default.css" file. There is a site-wide style sheet for printing called "print.css" that saves ink by setting backgrounds to white, printing to black and hidding all the navigation menus and links as they are useless on a printed page! (Take a look at what the print preview looks like for this page) Section specific styles are defined in the section style sheet file called "local.css". All sections have their own style for the content background that places the section specific identifying name up between the left main menu and the content. For this section the name is "DOCUMENTATION". The style puts an image in the background as follows:
#IDcontent { background-color:white; When a page uses a unique style the definition will be in the page head. This is often in conjunction with a bit of JavaScript to create a Dynamic HTML effect (DHTML). Sometimes it is used to over-rule the section style and impose a page specific style. The Megaphone pages have different sideways text identifiers for each original publication year. If a style is only used for one element it can be defined in line which means it is put into the element's HTML tag. There are a number of reasons for doing this. The two main reasons on this site are:
These are links that will show you the default and local cascading style sheets. They should open immediately as this site has already downloaded them to your computer for use when interpreting the pages! |