CSC 3750 Lecture Notes - Lecture 24: Online Magazine, Css Box Model

26 views4 pages

Document Summary

#nav a { text-decoration: none; padding-right: 10px; } Pseudo-classes a:link { color: #ff0000; } a:hover { text-decoration: none; color: #000066; } Deciding to configure a class or id. If the style may apply to more than one element on a page. Use the . (dot) notation in the style sheet. Use the class attribute in the html. If the style is specific to only one element on a page. Use the # notation in the style sheet. Use the id attribute in the html. Choosing a name for a class or an id. A class or id name should be descriptive of the purpose: such as nav, news, footer, etc: bad choice for a name: redtext, bolded, blueborder, etc. The the 10 most commonly used class names are: footer, menu, title, small, text, content, header, nav, copyright, and button. Use w3c css validator to check syntax errors. Use css comments to find the unexpected.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents