This chapter is from the book

This chapter is from the book

Creating the Main CSS Stylesheet (common.css)

The stylesheet, common.css, holds all the CSS style rules that are recognized
by older browsersas well as the newer browsers.

Create the style rules that control the text appearance
rules for the basic elements on the page, such as a (link) elements,
p (paragraph) elements, and h1 (header) elements.

Group the h1 and p selectors together to specify the
style rules that they share in common and then specify the unique style rules
for each separately. Grouping together selectors to specify any common style
rules together is a good way of streamlining your stylesheetsand also
makes it easier to change the styles for these elements at once if
necessary.

Group the ID selectors, #tabmiddle1, #tabmiddle2,
#tabmiddle3, #tabmiddle4, and #tabmiddle5, together and
specify the styles rules for them all at once.

NOTE

Because the div elements that act as text boxes on this
page and the tabs are precisely sized in pixels, specify the font and
line-height sizes in pixels also rather than in relative units such as em
or percent.