Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using the CSS Styles panel to add a new style

From: Creating a CSS Style Guide: Hands-On Training

Video: Using the CSS Styles panel to add a new style

With the external CSS style sheet linked to the HTML document, we can continue to create styles for our tags as well as create classes. Let's take a look at how we can do that with our external style sheet and using our CSS Styles panel. At the bottom of the CSS panel are several icons and buttons that we need to know about. This will link additional style sheets to your document. This allows you to create new styles. The dimmed-out Pencil allows you to edit style sheets and edit styles and this as we found can delete styles, so be careful about using this one.

Using the CSS Styles panel to add a new style

With the external CSS style sheet linked to the HTML document, we can continue to create styles for our tags as well as create classes. Let's take a look at how we can do that with our external style sheet and using our CSS Styles panel. At the bottom of the CSS panel are several icons and buttons that we need to know about. This will link additional style sheets to your document. This allows you to create new styles. The dimmed-out Pencil allows you to edit style sheets and edit styles and this as we found can delete styles, so be careful about using this one.

We want to create a new style right now and we want to create it for our Unordered List. I'm going to scroll down so you can see this a little better on your screen. I'm going to click my I- beam inside the Unordered List. Let's look at the Tag Inspector and select the Unordered List at the bottom of Tag Inspector. As soon as we select the UL tag in the Tag Inspector, it actually selects the entire Unordered List for us. This is a good practice to find the tag that you want to style, then come back over to the CSS panel and click on the New CSS Rule.

This opens up that familiar dialog box that we got when we were creating classes. However, this time it's made an incorrect guess. This is not a class that we are making; we are applying a style to the Unordered List tag, to the UL tag. So, let's look at the dropdown menu and select Tag. Once we define the proper selector type, which is Tag, Dreamweaver then does make a correct guess. It says your I- beam is in the UL and that must be what you want to style, this is, in fact, true. At the bottom this has changed, we are now using an external style sheet so it no longer says in this document.

We could be making that style in this document but from now on as a best practice following web standards we will be using external style sheets only. So everything looks okay. This is a tag. This style will be applied to the UL tag and we want to define or save this style inside our external style sheet. Click on the OK button. Now, an awesome, a little daunting dialog box comes up. This dialog box is great for beginners and for intermediates. It prompts you to learn and to understand all the different kinds of attributes and descriptors that you can style inside of Dreamweaver CS4. There are many more than this, but these are the ones that are frequently used by designers and developers.

Select the Type category. I would like to make this UL List italicized. So in Font Style, I'll click on the dropdown menu and choose Italic. Again, I have this Preview button. It should really say Preview, not Apply. I can click on that Apply button and instantly over here on the left I can see that my list is now italicized. Because it's a list I'm curious about the category List. I'm going to select the List category and I see that I could have different kinds of style types for my list. Select the dropdown menu and I think I'll try the circle. Again, I can try this out, hit Apply. Look, that gives me a hollow circle. I could try the square. Apply that.

I can even choose no identifying mark in front of my Unordered List and I can really start bossing the way my list look and how they present inside of the page. Let's say if I wanted was the circle, I'm going to select the dropdown menu again and choose circle. We'll click the Apply button one more time. I'm happy with those changes and select OK. So, it's a really easy to create a style that's attached to a tag inside of the CSS panel and have that be put inside of your external style sheet. Now, as I've talked about before, every time you create a style, it always goes to the bottom of the list. It's the latest style that you created, so it puts it at the bottom of the list. This is a great feature inside the Style panel. You can select this and drag it up to wherever you want it. I have been very careful to be grouping my styles according to what kinds of styles they are.

Notice, these are all HTML tags. The second group are all the Anchor tags, which need to be together in this order. Remember the LoVeHAte word? The last grouping are the class styles. I can recognize them by the period in front of each one of their names. So, I'm carefully acknowledging and grouping them according to what they are and what they do. Why would I be doing this? Because three months from now when the client says, "change this page, update this, change that, our logo changed color," I can come right into my style sheets and find the appropriate style easily because I have taken the time to order them in a way that makes logical sense for me.

Let's do a Save All to save the entire grouping of pages and let's see if that displays properly out in Firefox. Looks good. That's a great looking Unordered List! Creating styles in the CSS panel and dialog box is easy and a great a way to learn the scriptures and attributes, but we really need to work on the layout of our style guide. This style guide will be shared amongst our team. We want to create a style guide that the whole team can use that translates into the look and feel of the site that we are creating. Using tags, using styles, we can create a layout look that the whole team can use.

Show transcript

This video is part of

Image for Creating a CSS Style Guide: Hands-On Training
Creating a CSS Style Guide: Hands-On Training

35 video lessons · 28026 viewers

Laurie Burruss
Author

 
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

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
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.


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.

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

Your file was successfully uploaded.

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.