Cascading Style Sheets Cascading Style Sheets (CSS) (CSS) Within the Within the Enterprise Architecture Enterprise Architecture Framework Framework (EAF) (EAF) Cascading Style Sheets Cascading Style Sheets (CSS) (CSS) Within the Within the Enterprise Architecture Enterprise Architecture Framework Framework (EAF) (EAF) Wes Ziegeler August 3, 2006
10
Embed
Cascading Style Sheets (CSS) Within the Enterprise Architecture Framework (EAF) Wes Ziegeler August 3, 2006.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)Within theWithin the
• CSS stands for Cascading Style Sheets• There are actually two different languages to choose
from when you create a style sheet• level 1 (CSS1) • level 2 (CSS2)
• Styles define how to display HTML elements• Styles are normally stored in Style Sheets • Styles were added to HTML 4.0 to solve a problem• External Style Sheets can save you a lot of work• External Style Sheets are stored in CSS files• Multiple style definitions will cascade into one• For more details on CSS, See: http://www.w3schools.com/
/*comment-- Controls the entire page background - except BG around the headerlogo, last pages visited BG, portal/quicknav header BG, data listings BG and hover box BG.--comment*/BODY { BACKGROUND: #FFFFFF; TEXT-ALIGN: center;} /*comment-- controls the hover text. --comment*/.fontClass { font-family: Verdana, Lucida, Helvetica, Arial, sans-serif; font-size: 12px;} /*comment-- Controls the BG of hovers, border controls the hover cell padding not the table border around it. --comment*/.fgClass { background-color: #A95328; border: 1px solid #C2B6A0;} /*comment--BG color controls the hover border, border controls the hover border shading. -- comment*/.bgClass { background-color: #A95328; border: 1px solid #C2B6A0;}
CSS within EAF: Graphical Mapping
.header - Controls top header logo sizeand borders.
.nav - Controls navigatio bar width, color,position, and text align. Border is set atnone. Height is controlled by text lineinput.
.crumbs - Controls the Last PagesVisited area.
a.navlink:hover - Controls top navbartext hover color and size.
a.navlink:visited - Controls top navbartext color and size post-visit.
a.navlink - Controls top navbar text colorand size pre-visit.
.fontClass - Controls the hover text sizeand color.
.fgClass - Controls hover BG color.Border controls the hover cell paddingnot the table border around it.
.bgClass - Controls the hover border BGcolor. Border controls the hover bordershading.
.timezone - Controls the current timefunctionallity and placement. Notcurrently used.
Body - Controls the page BG color andtext alignment.
Body - Controls the page BG color andtext alignment.
.rightmain - Controls the small printer,pdf and e-mail icons at the top of thepage.
#content - Controls all content of theentire site. Left page border, main textthrough-out the site and quick navheadings. Any content not controlled byanother style.
#col3 - Controls the Quick NavInformatics.
.jumphead - Controls col1 and col3headings.
.jumpbodyeven - Controls BG color andtext of even containers.
.jumpbodyodd - Controls BG color andtext of odd containers.
#col2 - Controls the functionallity ofcolumn 2. May be overidden by.fontCass or in the code.
CSS GRAPHICAL MAPPING (Page 1 of 5)
CSS within EAF: In Conclusion
/*comment-- Controls the entire page background - except BG around the headerlogo, last pages visited BG, portal/quicknav header BG, data listings BG and hover box BG.--comment*/
/*comment-- Controls the BG of hovers, border controls the hover cell padding not the table border around it. --comment*/
.fgClass {
background-color: #A95328;
border: 1px solid #C2B6A0;
}
/*comment--BG color controls the hover border, border controls the hover border shading. -- comment*/
.header - Controls top header logo sizeand borders.
.nav - Controls navigatio bar width, color,position, and text align. Border is set atnone. Height is controlled by text lineinput.
.crumbs - Controls the Last PagesVisited area.
a.navlink:hover - Controls top navbartext hover color and size.
a.navlink:visited - Controls top navbartext color and size post-visit.
a.navlink - Controls top navbar text colorand size pre-visit. .fontClass - Controls the hover text size
and color.
.fgClass - Controls hover BG color.Border controls the hover cell paddingnot the table border around it.
.bgClass - Controls the hover border BGcolor. Border controls the hover bordershading.
.timezone - Controls the current timefunctionallity and placement. Notcurrently used.
Body - Controls the page BG color andtext alignment.
Body - Controls the page BG color andtext alignment.
.rightmain - Controls the small printer,pdf and e-mail icons at the top of thepage.
#content - Controls all content of theentire site. Left page border, main textthrough-out the site and quick navheadings. Any content not controlled byanother style.
#col3 - Controls the Quick NavInformatics.
.jumphead - Controls col1 and col3headings.
.jumpbodyeven - Controls BG color andtext of even containers.
.jumpbodyodd - Controls BG color andtext of odd containers.
#col2 - Controls the functionallity ofcolumn 2. May be overidden by.fontCass or in the code.
.leftmain - Controls text in column 2.Does NOT affect framesets.
.footer - Controls standard_html_footerarea font, floating elements, BG color,width and text alignment.
a.footlink - Controls footer text, colorand size for user and privacy policy, pre-visit.
a.footlinkvisited - Controls footer text,color and size for user, privacy andcomments, post-visit.
a.footlink:hover - Controls footer textcolor and size on hover.
CSS GRAPHICAL MAPPING (Page 1 of 5)
Textual Mapping
Graphical Mapping
• The important objectives to aim for are:• Select the appropriate styles for your project• Avoid or minimize the use of inline styles with external styles• At a minimum comment your CSS• An extra plus is a graphical mapping of the styles used to control your HTML