Join Eric Meyer for an in-depth discussion in this video ID selector essentials, part of CSS Web Site Design.
- View Offline
- Exercise Files
In this chapter we're going to be covering selectors in some detail, this is because learning about selectors is really the key to…writing really good CSS. So, what we're going to start with is ID selectors. Now,…in the markup here, there are a few ids, there's a div ID of masthead, right after it there's an a element…with an ID of homelink and then after that is an ol with an ID of navlinks. There is also a paragraph with an ID of…today and a div with and ID of content.…
IDs are assigned in the markup as you can see here.…You can't just make up IDs in your CSS and expect the browser to know…what to do with those unless there are corresponding IDs in the XHTML markup.…Now there is a special rule about IDs, you can only have one instance of a given ID in the document. So here I have a div with an ID…of content that is the only element…in this entire document that can have an ID of content. Obviously we can have IDs on…many different elements in fact, we could, if we were feeling particularly strange, put an ID on every single element as long as…
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.