CSS Code for the CSS Zen Garden Home Page, circa August 2008 Discussed @ https://perishablepress.com/css-implementations-of-the-rich-and-famous/ /* css Zen Garden default style - 'Tranquille' by Dave Shea - http://www.mezzoblue.com/ */ /* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */ /* All associated graphics copyright 2003, Dave Shea */ /* Added: May 7th, 2003 */ /* IMPORTANT */ /* This design is not a template. You may not reproduce it elsewhere without the designer's written permission. However, feel free to study the CSS and use techniques you learn from it elsewhere. */ /* The Zen Garden default was the first I put together, and almost didn't make the cut. I briefly flirted with using 'Salmon Cream Cheese' as the main style for the Garden, but switched back to this one before launch. All graphics in this design were illustrated by me in Photoshop. Google Image Search provided inspiration for some of the elements. I did a bit of research on Kanji to come up with the characters on the top left. Anyone who can read that will most likely tell you it makes no sense, but the best I could do was putting together the characters for 'beginning' 'complete' and 'skill' to roughly say something like 'we're breaking fresh ground.' It's a stretch. */ /* basic elements */ html { margin: 0; padding: 0; } body { font: 75% georgia, sans-serif; line-height: 1.88889; color: #555753; background: #fff url(/001/blossoms.jpg) no-repeat bottom right; margin: 0; padding: 0; } p { margin-top: 0; text-align: justify; } h3 { font: italic normal 1.4em georgia, sans-serif; letter-spacing: 1px; margin-bottom: 0; color: #7D775C; } a:link { font-weight: bold; text-decoration: none; color: #B7A5DF; } a:visited { font-weight: bold; text-decoration: none; color: #D4CDDC; } a:hover, a:active { text-decoration: underline; color: #9685BA; } acronym { border-bottom: none; } /* specific divs */ #container { background: url(/001/zen-bg.jpg) no-repeat top left; padding: 0 175px 0 110px; margin: 0; position: relative; } #intro { min-width: 470px; width: 100%; } /* using an image to replace text in an h1. This trick courtesy Douglas Bowman, http://www.stopdesign.com/articles/css/replace-text/ */ #pageHeader h1 { background: transparent url(/001/h1.gif) no-repeat top left; margin-top: 10px; display: block; width: 219px; height: 87px; float: left; } #pageHeader h1 span { display:none } #pageHeader h2 { background: transparent url(/001/h2.gif) no-repeat top left; margin-top: 58px; margin-bottom: 40px; width: 200px; height: 18px; float: right; } #pageHeader h2 span { display:none } #pageHeader { padding-top: 20px; height: 87px; } #quickSummary { clear: both; margin: 20px 20px 20px 10px; width: 160px; float: left; } #quickSummary p { font: italic 1.1em/2.2 georgia; text-align: center; } #preamble { clear: right; padding: 0px 10px 0 10px; } #supportingText { padding-left: 10px; margin-bottom: 40px; } #footer { text-align: center; } #footer a:link, #footer a:visited { margin-right: 20px; } #linkList { margin-left: 600px; position: absolute; top: 0; right: 0; } #linkList2 { font: 10px verdana, sans-serif; background: transparent url(/001/paper-bg.jpg) top left repeat-y; padding: 10px; margin-top: 150px; width: 130px; } #linkList h3.select { background: transparent url(/001/h3.gif) no-repeat top left; margin: 10px 0 5px 0; width: 97px; height: 16px; } #linkList h3.select span { display:none } #linkList h3.favorites { background: transparent url(/001/h4.gif) no-repeat top left; margin: 25px 0 5px 0; width: 60px; height: 18px; } #linkList h3.favorites span { display:none } #linkList h3.archives { background: transparent url(/001/h5.gif) no-repeat top left; margin: 25px 0 5px 0; width:57px; height: 14px; } #linkList h3.archives span { display:none } #linkList h3.resources { background: transparent url(/001/h6.gif) no-repeat top left; margin: 25px 0 5px 0; width:63px; height: 10px; } #linkList h3.resources span { display:none } #linkList ul { margin: 0; padding: 0; } #linkList li { line-height: 1.3em; background: transparent url(/001/cr1.gif) no-repeat top center; display: block; padding-top: 5px; margin-bottom: 5px; list-style-type: none; } #linkList li a:link { color: #988F5E; } #linkList li a:visited { color: #B3AE94; } #extraDiv1 { background: transparent url(/001/cr2.gif) top left no-repeat; position: absolute; top: 40px; right: 0; width: 148px; height: 110px; } .accesskey { text-decoration: underline; } HTML { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px } BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/001/blossoms.jpg) #fff no-repeat right bottom; PADDING-BOTTOM: 0px; MARGIN: 0px; FONT: 75%/1.8888 georgia, sans-serif; COLOR: #555753; PADDING-TOP: 0px } P { MARGIN-TOP: 0px; TEXT-ALIGN: justify } H3 { MARGIN-BOTTOM: 0px; FONT: italic 1.4em georgia, sans-serif; COLOR: #7d775c; LETTER-SPACING: 1px } A:link { FONT-WEIGHT: bold; COLOR: #b7a5df; TEXT-DECORATION: none } A:visited { FONT-WEIGHT: bold; COLOR: #d4cddc; TEXT-DECORATION: none } A:hover { COLOR: #9685ba; TEXT-DECORATION: underline } A:active { COLOR: #9685ba; TEXT-DECORATION: underline } ACRONYM { BORDER-BOTTOM-STYLE: none } #container { PADDING-RIGHT: 175px; PADDING-LEFT: 110px; BACKGROUND: url(/001/zen-bg.jpg) no-repeat left top; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; POSITION: relative } #intro { WIDTH: 100%; min-width: 470px } #pageHeader H1 { MARGIN-TOP: 10px; DISPLAY: block; BACKGROUND: url(/001/h1.gif) no-repeat left top; FLOAT: left; WIDTH: 219px; HEIGHT: 87px } #pageHeader H1 SPAN { DISPLAY: none } #pageHeader H2 { MARGIN-TOP: 58px; BACKGROUND: url(/001/h2.gif) no-repeat left top; FLOAT: right; MARGIN-BOTTOM: 40px; WIDTH: 200px; HEIGHT: 18px } #pageHeader H2 SPAN { DISPLAY: none } #pageHeader { PADDING-TOP: 20px; HEIGHT: 87px } #quickSummary { CLEAR: both; FLOAT: left; MARGIN: 20px 20px 20px 10px; WIDTH: 160px } #quickSummary P { FONT: italic 1.1em/2.2 georgia; TEXT-ALIGN: center } #preamble { CLEAR: right; PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px } #supportingText { PADDING-LEFT: 10px; MARGIN-BOTTOM: 40px } #footer { TEXT-ALIGN: center } #footer A:link { MARGIN-RIGHT: 20px } #footer A:visited { MARGIN-RIGHT: 20px } #linkList { RIGHT: 0px; MARGIN-LEFT: 600px; POSITION: absolute; TOP: 0px } #linkList2 { PADDING-RIGHT: 10px; MARGIN-TOP: 150px; PADDING-LEFT: 10px; BACKGROUND: url(/001/paper-bg.jpg) repeat-y left top; PADDING-BOTTOM: 10px; FONT: 10px verdana, sans-serif; WIDTH: 130px; PADDING-TOP: 10px } #linkList H3.select { BACKGROUND: url(/001/h3.gif) no-repeat left top; MARGIN: 10px 0px 5px; WIDTH: 97px; HEIGHT: 16px } #linkList H3.select SPAN { DISPLAY: none } #linkList H3.favorites { BACKGROUND: url(/001/h4.gif) no-repeat left top; MARGIN: 25px 0px 5px; WIDTH: 60px; HEIGHT: 18px } #linkList H3.favorites SPAN { DISPLAY: none } #linkList H3.archives { BACKGROUND: url(/001/h5.gif) no-repeat left top; MARGIN: 25px 0px 5px; WIDTH: 57px; HEIGHT: 14px } #linkList H3.archives SPAN { DISPLAY: none } #linkList H3.resources { BACKGROUND: url(/001/h6.gif) no-repeat left top; MARGIN: 25px 0px 5px; WIDTH: 63px; HEIGHT: 10px } #linkList H3.resources SPAN { DISPLAY: none } #linkList UL { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px } #linkList LI { DISPLAY: block; BACKGROUND: url(/001/cr1.gif) no-repeat center top; MARGIN-BOTTOM: 5px; LINE-HEIGHT: 1.3em; PADDING-TOP: 5px; LIST-STYLE-TYPE: none } #linkList LI A:link { COLOR: #988f5e } #linkList LI A:visited { COLOR: #b3ae94 } #extraDiv1 { RIGHT: 0px; BACKGROUND: url(/001/cr2.gif) no-repeat left top; WIDTH: 148px; POSITION: absolute; TOP: 40px; HEIGHT: 110px } .accesskey { TEXT-DECORATION: underline }