New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

Creating a CSS Style Guide: Hands-On Training
Illustration by

Creating and styling compound tags


From:

Creating a CSS Style Guide: Hands-On Training

with Laurie Burruss

Video: Creating and styling compound tags

We have made lots of styles for our page. We have made styles for HTML tags, styles for classes. Remember classes can be used throughout the page as many times as you want. We have made styles for IDs. IDs can be used only once. Typically they are used for content areas and for layout areas. There is another way of creating styles that is very important. It's called compound styles. You can put a number of tags together or a combination of IDs and tags together. What this allows you to do is style multiple tags all at the same time and apply them very quickly and efficiently.
Expand all | Collapse all
  1. 6m 58s
    1. Welcome
      1m 9s
    2. Objective of this course
      3m 38s
    3. Using the exercise files
      2m 11s
  2. 28m 26s
    1. Starting Dreamweaver for the first time
      3m 38s
    2. Defining a website
      4m 3s
    3. Understanding the Dreamweaver interface
      9m 43s
    4. Setting up a custom workspace
      4m 10s
    5. Setting essential preferences
      6m 52s
  3. 56m 54s
    1. Laying out a page in a text document
      3m 40s
    2. Creating and saving a new document
      3m 27s
    3. Inserting an image
      8m 22s
    4. Marking up text using the Property Inspector
      6m 48s
    5. Marking up text by hand
      9m 21s
    6. Inserting, formatting, and selecting a table
      8m 16s
    7. Creating links
      12m 26s
    8. Styling a footer
      4m 34s
  4. 22m 15s
    1. Using Modify Page Properties to create embedded styles
      12m 22s
    2. Creating links with CSS
      4m 55s
    3. Working with Code, Split, and Design views
      4m 58s
  5. 8m 52s
    1. Defining browsers to test a web page
      2m 24s
    2. Previewing a web page in a browser
      6m 28s
  6. 16m 44s
    1. Using a span tag to add a class and customize appearance
      10m 34s
    2. Using the Tag Inspector to create and edit additional styles
      6m 10s
  7. 48m 42s
    1. Exporting existing styles into an external style sheet
      7m 0s
    2. Using the CSS Styles panel to add a new style
      5m 43s
    3. Using the div tag to create a content container
      11m 8s
    4. Overriding the default browser styles
      2m 46s
    5. Applying padding and margins
      4m 57s
    6. Styling header tags
      5m 34s
    7. Creating and styling compound tags
      5m 12s
    8. Editing preexisting rules
      6m 22s
  8. 19m 36s
    1. Improving the Footer
      5m 12s
    2. Commenting a CSS style sheet
      7m 0s
    3. Creating a custom color palette
      7m 24s
  9. 3m 6s
    1. Style sheet final review
      3m 6s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Creating a CSS Style Guide: Hands-On Training
3h 31m Beginner Mar 06, 2009

Viewers: in countries Watching now:

A web site is just a web site unless it’s designed with a unique style. Creating a CSS Style Guide: Hands-On Training highlights the importance of a CSS style guide, which serves as an interface for the design team and a communication tool for the client. Laurie Burruss calls on her background as director of digital media at Pasadena City College and takes an informative, real–world approach to this topic. She shows how Dreamweaver CS4 can be used to develop a coherent site–wide emotion that boosts brand identity. The course culminates with building a working web style guide for professional use. Exercise files and a downloadable PDF quiz accompany the course.

Download the exercise files from the Exercise Files tab.

Topics include:
  • Planning a site from a blank file
  • Creating and editing a style guide with just HTML
  • Using the Property Inspector for text markup
  • Inserting images, tables, and footers for a custom look
  • Creating and editing an external CSS style sheet
  • Building a custom color palette for a site
  • Testing web pages in various browsers
  • Styling tips for professional sites
Subject:
Web
Software:
CSS
Author:
Laurie Burruss

Creating and styling compound tags

We have made lots of styles for our page. We have made styles for HTML tags, styles for classes. Remember classes can be used throughout the page as many times as you want. We have made styles for IDs. IDs can be used only once. Typically they are used for content areas and for layout areas. There is another way of creating styles that is very important. It's called compound styles. You can put a number of tags together or a combination of IDs and tags together. What this allows you to do is style multiple tags all at the same time and apply them very quickly and efficiently.

So we are going to create a compound tag. In fact, we're going to create two of them. Let's move over to the CSS panel, select New CSS Rule. At the top it already displays Compound, but this is not what we want to style. At this point we would like to style our body text and our list. To type this, we put in the tags p, ul for the Unordered List, ol, dl. So that's all of our body text and all three of our lists. Again, we will save it into our external style sheet and let's click OK.

We are going to be working on the margins. We need to tighten this page up. If you look over to the left, you will see that there is a lot of space that could be slightly tightened up and make the content read better and be tighter. Let's select the Box category and under Margin, let's deselect Same for All. Margin Top should be zero, Margin Right should be 20 pixels, Bottom should be 7 and Left should be 20. Let's click on the Apply button and notice this really makes everything sort of ship-shape. We don't have that zig-zaggy left edge, it tightens up the content and we can read concept by concept now. It's kind of much better flow. Let's select OK.

We also need to tighten up the space between the headings. This is way too much space. It looks like dead space. It looks like we are not sure what's coming next. So we can create another compound tag for the h1, h2 and h3 tags. Back in the CSS panel select New CSS Rule. Leave the Selector Type Compound, and let's type h1, h2, h3. This compound tag will style all three of these tags at the same time. We'll leave it in our default style sheet, the one that is linked externally to our HTML document. Let's select OK.

Inside the CSS Rule Definition dialog box, under Category select Box and under Margin deselect Same for All. The Margin Top will be zero. As I do each one of these in the Header category I'm going to go ahead and click the Apply button so you can see what happens. That tightens that up and as you can see our link navigation may have gotten too tight up, but we can fix that in just a moment. Then for the Bottom Margin, instead of using pixels we are going to use em. By using em the space underneath the header will be based on the size of the letter em within the header.

So for that we will type in 0.6em. Now you can go ahead and just type em right there as you are typing and then Tab. It will apply itself. Let's click the Apply button again. There, see how that tightened it up and without needing to know all the proportions and having to guess at how many pixels for each header, we have a proportional or relational spacing that works for all three headers. Select OK. So, taking a look at what we have done, notice that as you apply styles it can affect other things going on in your page. And when we apply the style to the Main Heading, this actually pushed the navigation bar up. Let's place our I-beam right before the Link1 and hit the Return key. There we go. That's a good space. Let's do File > Save All. Select our Browser Preview for Firefox.

Let's carefully look through the page to make sure that the markup and the text and content is reading correctly. There is a mistake right down there. So the same thing that happened with the Link navigation bar is also happening down here with our footer area information. So let's close out of Firefox. Click on the document window to refocus Dreamweaver. Scroll to the bottom. Put our I-beam in front of the C of Cool Company and let's select the Return key.

Now we have got it all worked out. Let's do File > Save All. We are ready just to do some detail things and really clean it up and look at the finishing touches and try to make this as presentable as possible.

There are currently no FAQs about Creating a CSS Style Guide: Hands-On Training.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

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.


Mark all as unwatched Cancel

Congratulations

You have completed Creating a CSS Style Guide: Hands-On Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.