Join Eric Meyer for an in-depth discussion in this video Best practices for classes, part of CSS Web Site Design.
- View Offline
- Exercise Files
As a follow on to the previous video I just want to take a minute to talk about…a few best practices when it comes to classes. It can be very tempting to…over class as it were, to end classes really nearly and I hit her in Jan.…Just on the off chance that you might need them some day. As an example here in this document,…you can see where we have these list items here…that contain links that are navigation links and every one of these list items has a class of navlink and in the…a element, inside them have classes of navlinks and this is really, really, really inefficient.…
There's no need for all of this navlinking classing to happen here.…Instead, you could just take all that out so that instead of…having classes everywhere, you just have these plain elements and then you might wonder to yourself well, how am I supposed to select those. Well,…that's coming up later in the chapter, about the short preview answer is that…you use the ID up here on the element that encloses all these other elements in order to make your selections.…
Skill Level Intermediate
Layouts with CSS in Dreamweaverwith Joseph Lowery3h 33m Intermediate
Site Navigation with CSS in Dreamweaverwith Joseph Lowery3h 24m Intermediate
2. CSS and XHTML
5. Adding Colors and Backgrounds
6. Setting Typography
7. Using Margins and Borders to Create White Space and Separation
8. Creating Tables
9. Styling for Print
10. Bringing It All Together
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.