Typography & CSS
This page is an application of Spry Accordion Panels. Originally this section of the site comprised two separate HTML pages. The accordion panels have effectively consolidated the information into one page. Click on the color bars to open and close the panels. Click outside of the accordion panels to have the focus outline disappear. ( The blue halo appears in Safari Ver. 4.0.4 on The Mac.)
working with css layouts
For this author, accessing, editing and creating new rules can be done either through the CSS Panel or the selector button in the Property Inspector. Using the property inspector, selecting HTML elements and then applying existing styles seemed to be an expeditious way to go. It is also a great way to make quick edits. For creating new rules, there is natural tendency to work directly through the CSS Panel itself as the Property Inspector is limited and does not list all of the rules.
To be efficient with CSS site wide, External Style Sheets work extremely well. It is wise to plan which HTML elements will require global change in advance as embedded styles can be used to fine tune individual pages. By initially styling a page with embedded styles, it is a simple process to move those styles over to an external sheet as explained below.
A note on CSS Applications
CSS can be applied as an inline style, an embedded style or be applied from an external document linked or imported into an HTML web page. External documents can be most useful in deploying formatting across large web sites. Code can be constructed once and re-used over and over, saving a great deal of time. This method also reduces the the file size of the target HTML page. However, care must be taken when constructing these documents. It is best to consider those elements in a range of HTML pages that will require the same level of consistent formatting.
For limited formatting on a single HTML page, embedded styles may be the way to go. These styles are placed in the HEAD of the HTML document, nested between style tags. EX: <style type="text/css">CSS Rules List Go Here</style>. Embedded styles have their merits but also add file size to an HTML page. If you are planning to create and use many rules, an external CSS file may be the best route to take. Individual pages can be edited by using embedded and inline styles.
On a final note, one should remember that an inline style (EX: <b>Bold</b>)will override an embedded style and an external document. On the same note, styles embedded in the head of any HTML page will override rules written in an external document. External documents are referred to as Style Sheets. On this page, I have used a linked external style sheet and have tweaked my formatting as necessary and appropriate using the inline method.
As previously mentioned, external style are very useful for global formatting. Embedded styles are best used for fine tuning pages. Inline styles will refine elements on an as need basis.
The Cascade -----> External Sheets -----> Embedded Styles -----> Inline Style
The inline style has the highest priority since it is closest to the HTML element/attribute.
Click the next panel tab to view details of the Re-design.
CSS Re-Design