|
webeng: template team: syndication buckets and CSS: samples To convert webpages to the new CSS/bucket system, first open up the top-level template for the page in your favorite editor. Remove anyclass="xxx" attributes within the <BODY> tag at the top of the
page, since a class-assignment here is no longer needed.
Next, go through the template and replace all occurances of Once you've completed converting the top-level template, you're reading to start modifing the included components. Compare an unchanged version of your webpage (either from the production servers, or from Eminem) with the bucket-types page of this document, to determine which type of bucket most-closely matches the component in question. (If you can't make a match, this component might require a new bucket-type classification!). Once you've figured out which bucket-type to convert your component over to, go through and begin modifying the component's code. Usually, it helps to set all table borders to a value of ten, so you can clearly see the table structure(s) and the various cells within (each).
Each bucket type has a "main" CSS class, intended to control the main-content area of the bucket. This class has the same
name as the bucket-type (e.g., primary). Other "sub-classes" control various sub-entities within the bucket: _header
controls the header background color and font parameters; _border controls the outer border-table background-color; etc. Each bucket sub-section
additionally usually has a smaller- and larger-than-normal font size, specified by _sm and _lrg. Text requiring these
settings should be wrapped in So, generally, to convert a component, you'd set the outer border table's class to _border, the table-cell containing the header text to _header, the inner table's class should be set to the "main" class name, as well as any content-cells within that table. Larger, smaller, or special-case text should then be inclosed in <FONT> tags WITHIN EACH TABLE CELL, to offset this non-standard font, since these classes do not set their own background colors--they must inherit from the "main" bucket class (e.g., .primary or .feature).
Finally, note that font-control parameters do NOT "trickle-down" inside a table, so it is not sufficient
to assign a class to the Please also refer to the examples. |