'''Cascading Style Sheet''', or '''CSS''', is a mechanism for specifying style and layout of structured documents, namely [HTML]. ** See Also ** [CSS2HTML]: an attempt by [PN] to solve the problem of managing the styles of many websites [TkHTML]: [NEM]: Version 3 now has excellent support for CSS. ** Tcl Resources ** [http://bitbucket.org/smh377/cssparse%|%CSS parser written in Tcl], by [st3ve]: ** Other Resources ** [http://sass-lang.com/%|%Sass], "Syntactically Awesome Style Sheets": ** Documentation ** [http://www.w3.org/Style/CSS/%|%W3C home]: [http://www.w3.org/TR/REC-CSS1%|%Cascading Style Sheets, level 1], W3C Recommendation 17 Dec 1996, revised 11 Apr 2008: [http://www.htmlhelp.com/reference/css/%|%Cascading Style Sheets]: A reference by the Web Design Group ** Description *** Style sheets provide mechanism for separating display markup from structural markup. They are a named collection of attribute-property pairs. The style properties correspond to [html%|%HTML] element properties. Styles are applied to html elements of a given type, html elements grouped in a or
block or html elements whose class/id attribute is set to the style name. The specifcations for CSS include CSS1, CSS2, CSS3 (draft), and others. New specifications include 3D positioning and sizing of html elements. Unforunately CSS uses different property names then HTML. These style properties can be dynamically set in JavaScript through yet another name convention. *** [HTML] tags that are particularly relevant to CSS *** <'''Span'''>: Defines-delimits a group of htmlElements and optionally names it. If you assign its class attribute with a style its grouping of elements will be stylized by it. Style assignment is as follows: class="someStyle". <'''Div'''>: Same as Span but will draw the block on a newline. This breaks the flow. It can also be sized,autosized and positioned and given a z-depth. This uses the id rather than the class attribute for assignment: id="someStyle". There also is the idea of floating the the block element to some alignment direction. This will cause the next item to flow around the floated item. I guess a better way than a table to flow text around an image. (See Figure 1) <'''Style'''>: *** Formal Definition *** ClassName {name:value [[name:value;]]* } [[ ClassName { }]]* ** Declarations ** inline: ======none

some text

====== file inclusion in HTML head: ====== ====== file inclusion in html body: ======none ====== file inclusion javascript: ====== ====== *** ClassNaming *** ======none .theStyleClassName P.theStyleClassName ====== *** Grouping *** Upon declaring you can apply the attributes to several HtmlElement Classes at once. This is a comma separated list. For unseparated list, see Nesting. ====== li ,em ,span {name:val;...} ====== *** Nesting *** A sequence of tag names separated by whitespace instead of commas indicates nested tags: ====== ul ul {color:red} ====== would cause the nested `