In CSS, if you want a class to apply to only one <div> then it gets an ID Selector, and appears in your stylesheet like so:
- classname{stuff}
So all those styles which place things on the page are going to go in our stylesheet as IDs.
- headerFrame{ /* the frame around the entire header */ }
- sidebarFrame{ /* puts the sidebar in place */ }
- bodyFrame{ /* the frame around the whole body, probably for positioning */ }
- footerFrame{ /* puts the footer in place */ }
Then we can put in the classes that will get applied one to each note. There will be many of these, so they're a regular class. On the other hand, we supposedly don't know what sort of html thing these might be applied to, so we'll include them as classes independent of the html element. It's almost always going to be a <div>, but we need to be open-minded so we'll leave out the selector.
.blogtitle{ }
.blogtagline{ }
.sidebar{ /* an individual sidebar */ }
.sidebarHead{ /* the head of a sidebar piece */ }
.sidebarBody{ /* the body... */ }
.postHead{ /* the headings or titles of the blog entries */ }
.postBody{ /* the text of the blog entries */ }
.footer( /* in case we want to surround multiple footers like sidebars */ )
.footerBody{ /* the text of the footer */ }
We can't forget the basic HTML selectors, which we can bring right over from the old Simplicity stylesheet. These should appear at the top of the stylesheet, but we'll get to that:
a:link { /* each of these from before */ }
a:visited { }
a:visited { }
a:visited { }
p { /* all paragraphs will get this unless the others override it */ }
body { /* will define the way the body appears, unless overridden by bodyframe */