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

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

Dreamweaver CS6 Essential Training
Illustration by

Organizing styles


From:

Dreamweaver CS6 Essential Training

with James Williamson

Video: Organizing styles

It's not uncommon to add styles throughout your project. It's actually really quite rare for a designer to sit down and write all the styles for a site in one sitting. Yeah, most of the time it's a very organic process and because of this, it's very easy for styles to become unorganized or for them to gain unnecessarily in size. The organization of styles is incredibly important. Not only will it help you maintain and update the site a little bit later on, but it also prevents style conflicts from causing major problems in your files. In this movie, I want to show you how to use the CSS Styles panel to keep your styles organized.
Expand all | Collapse all
  1. 1m 4s
    1. What is Dreamweaver?
      1m 4s
  2. 5m 44s
    1. Welcome
      1m 4s
    2. Using the exercise files
      2m 17s
    3. Learning web design
      2m 23s
  3. 1h 0m
    1. Looking at the Welcome screen
      5m 9s
    2. Exploring Windows and Mac interface differences
      5m 6s
    3. Arranging panels
      8m 44s
    4. Managing workspaces
      10m 14s
    5. Exploring the Application toolbar
      6m 21s
    6. Exploring the Document toolbar
      8m 47s
    7. Working with the Property inspector
      9m 30s
    8. Using the Insert panel
      6m 30s
  4. 53m 3s
    1. Understanding basic site structure
      3m 46s
    2. Exploring file naming conventions
      2m 10s
    3. Defining a new site
      5m 23s
    4. Managing files and folders
      7m 57s
    5. Adding remote servers
      7m 4s
    6. Uploading files
      12m 46s
    7. Previewing in browsers
      9m 11s
    8. Managing multiple sites
      4m 46s
  5. 36m 41s
    1. Creating new documents
      6m 49s
    2. Setting up new document preferences
      5m 30s
    3. Setting accessibility preferences
      6m 49s
    4. Working with starter pages
      4m 32s
    5. Managing starter pages
      13m 1s
  6. 37m 23s
    1. Getting text into Dreamweaver
      8m 43s
    2. Importing Word documents
      4m 6s
    3. Adding structure to text
      7m 35s
    4. Creating lists
      4m 35s
    5. Creating definition lists
      4m 0s
    6. Using the Quick Tag Editor
      8m 24s
  7. 44m 41s
    1. Exploring the Code toolbar
      5m 41s
    2. Setting code preferences
      7m 19s
    3. Using code hints
      8m 8s
    4. Wrapping tags
      5m 7s
    5. Adding comments
      6m 29s
    6. Using snippets
      7m 32s
    7. Formatting source code
      4m 25s
  8. 1h 19m
    1. Setting CSS preferences
      9m 32s
    2. An overview of the CSS Styles panel
      9m 23s
    3. Creating a new CSS rule
      6m 42s
    4. Using the CSS Rule Definition dialog
      7m 25s
    5. Organizing styles
      7m 22s
    6. Modifying style properties
      6m 17s
    7. Controlling CSS through the Property inspector
      6m 37s
    8. Attaching external style sheets
      5m 54s
    9. Using CSS visual aids
      7m 3s
    10. Using CSS Inspect
      6m 48s
    11. Using the Code Navigator
      6m 39s
  9. 1h 11m
    1. Managing assets in Dreamweaver
      7m 30s
    2. Setting external image editing preferences
      4m 26s
    3. Placing images on the page
      10m 12s
    4. Exploring Photoshop integration
      7m 17s
    5. Modifying Smart Objects
      9m 42s
    6. Modifying image properties
      8m 4s
    7. Styling images with CSS
      6m 45s
    8. Using background graphics
      7m 28s
    9. Positioning background graphics
      10m 10s
  10. 36m 23s
    1. Link basics
      3m 17s
    2. Setting site linking preferences
      2m 19s
    3. Creating links in Dreamweaver
      9m 17s
    4. Using absolute links
      3m 43s
    5. Using named anchors
      6m 41s
    6. Creating an email link
      5m 25s
    7. Creating CSS-based rollovers
      5m 41s
  11. 44m 30s
    1. Reviewing table structure
      5m 20s
    2. Importing tabular data
      6m 46s
    3. Creating accessible tables
      6m 11s
    4. Exploring basic table styling
      9m 42s
    5. Styling alternate rows
      8m 57s
    6. Creating custom table borders
      7m 34s
  12. 59m 15s
    1. Understanding how forms work
      2m 45s
    2. Reviewing form design
      3m 44s
    3. Creating accessible forms
      5m 16s
    4. Setting form properties
      2m 39s
    5. Using the fieldset and legend tags
      2m 52s
    6. Inserting text fields
      6m 56s
    7. Inserting list menu items
      7m 54s
    8. Inserting checkboxes
      4m 14s
    9. Inserting radio button groups
      3m 52s
    10. Inserting submit buttons
      2m 25s
    11. Exploring basic form styling
      8m 2s
    12. Exploring form element styling
      8m 36s
  13. 33m 25s
    1. Adding CSS3 transitions
      8m 29s
    2. Spry overview
      2m 44s
    3. Using Spry widgets
      3m 57s
    4. Adding Spry effects
      8m 1s
    5. Using the Widget Browser
      7m 4s
    6. Extending Dreamweaver
      3m 10s
  14. 1m 2s
    1. Additional resources
      1m 2s

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 ...
Dreamweaver CS6 Essential Training
9h 24m Beginner May 07, 2012

Viewers: in countries Watching now:

Discover how to build web sites, prototypes, and more in this course on Adobe Dreamweaver CS6. Author James Williamson shows designers how to take control of their site by properly naming and structuring files and folders; how to create new documents and web pages from scratch or with starter pages; and how to add content such as text, images, tables, and links. James also provides a background on the languages that power projects built in Dreamweaver—HTML and CSS—and introduces the programming features in the application, for developers who want to dig right into the code. The last chapter shows how to finesse your project with interactive content such as CSS3 transitions and Spry widgets.

Topics include:
  • Choosing and customizing a workspace
  • Defining a new site
  • Uploading files to your site
  • Creating new documents and web pages
  • Formatting source code
  • Working with CSS
  • Placing images and background graphics
  • Creating links
  • Styling a basic table
  • Creating a web form with buttons, check boxes, and list menus
  • Adding Spry effects
Subject:
Web
Software:
Dreamweaver
Author:
James Williamson

Organizing styles

It's not uncommon to add styles throughout your project. It's actually really quite rare for a designer to sit down and write all the styles for a site in one sitting. Yeah, most of the time it's a very organic process and because of this, it's very easy for styles to become unorganized or for them to gain unnecessarily in size. The organization of styles is incredibly important. Not only will it help you maintain and update the site a little bit later on, but it also prevents style conflicts from causing major problems in your files. In this movie, I want to show you how to use the CSS Styles panel to keep your styles organized.

To do this, we're going to be working in the index file from 06_05 folder. I'm going to modify my CSS Styles panel a little bit here. I'm going to take this Properties pane and I'm going to minimize that all the way down to where it's just not even visible anymore. And the reason for that is because we have a lot of styles in this file. We're going to be moving some around, and I want to have enough visual space in order for me to do that in a fairly efficient manner. Well, I notice that we have two things going on here. We have an external main.css file and then we have some embedded styles within this particular document.

If open those up, I could see that they're all classes, and for the most part they aren't classes such as this one, homeHeader, that apply to this file, but there are the ones such as course, orange, blue, lavender, those apply to everything within the site. So there's really no reason for them to be just on this page. It's not a very efficient way of handling those. I actually need those selectors inside my main.css file, so that the rest of my site can benefit from them and it's going to also help with my organization. So I need them moved from my styles here up into main.css.

Now one way for me to that would be to go to the actual code itself. I could switch over to Code view, I could go up to the styles themselves, and then I could just copy and paste them where I needed them within main.css. And that really doesn't take probably that long, but one of the really nice things about the CSS Styles panel is that I can move rules around, not only within one style sheet, but from one style sheet to another, which is an amazingly powerful feature. So what I'm going to do is I'm going to go ahead and select the first four classes.

Now I can do that by clicking on one, holding the Shift key down and clicking on the last one, so these four, course, orange, blue, and lavender. I'm going to expand main.css, because this is going to help me decide exactly where to place these. And then I'm going to take these four that I've selected, hold the mouse down and I'm going to drag up. Now you'll notice that as I begin to drag up, I see this blue bar that shows up as I'm scrolling through. Essentially what that's telling you is okay, if you let go of the mouse, this is where those selectors are going to be copied to.

I'm going to go all the way up to the top, so that it scrolls a little bit and then I'm going to find these section of classes right here. Now because I wrote the style sheet, I happen to know that this section of styles is in a little session called global classes, and that's what these guys are. So even though I wrote these styles and I created a section of global classes, for whatever reason, as I was working maybe with this page, I went ahead and created more classes and embedded them in this file. So now at this point, I need to reorganize my styles and make sure they're in the right place.

So I'm going to move them up just below where it says .more and as soon as I let go of the mouse, I can see that it adds those selectors right there. Now what Dreamweaver just did for me was a very physical thing. If I look back in the Source Code, if I switch back over to the Source Code, I now notice that those selectors are not there anymore. They're not there any longer. If I go over to main.css and I scroll into these global classes, I can see there are course, orange, blue, and lavender, they've been physically moved from one style sheet to another and I was able to do all of that without going into the code.

That's a pretty powerful feature. Now I'm going to complete this by going down to the homeHeader, which really belongs to a different set of styles and I'm going to click on that and move this up into where the other header styles are. And as I scroll this up, I can see right here we have programHeader, aboutHeader, graphics and request. I'm just going to place it at the very top of these headers, because it is the homepage, so I'm going to place it between this programHeader and pageHeader hover style. As soon as I do that, it's going to physically move it within my styles and I'll notice that the style tag is now empty.

Now if that style tag is now empty and I don't plan on adding anything to it later on, it doesn't really need to be there. So at the current time in the head of my document, I just have this sort of empty style tag if you will. So again, using the CSS Styles panel, I can simply click on that, come down to the Trashcan and click, and it's literally going to remove that from the Source Code. So again, that's just one of the awesome things about the CSS Styles panel. I can visually and very quickly make significant edits to my code and organize my styles, which is awesome.

Now there are additional things this allows me to do as well, and I'm guessing that more than one of you, when you're watching this exercise, because I do this myself, when you were selecting one of these styles, you probably selected it and clicked it again to move it, and instead of moving, you saw this. All right! Well, that option allows you to rename a selector and that's sometimes really, really important. For example, if I scroll down through my styles, I can find down here towards the bottom this really weird selector here. This selector says body/article #mainContenth2. That's very, very specific.

It's applying to any h2 which is inside of an article with an ID of mainContent, which is inside the body tag. Well, that's way more specific than it needs. Look at all the other selectors around it. They just say article h1, article h3. So I think I got a little overzealous when I wrote that particular selector. So what I'm going to do is I'm going to click it once to highlight it, then I'm going to click it again a short time after that, and when I do that, what that's going to do is it's going to focus on the actual selector itself and I can rename the selector. What I'm going to do is I'm going to get rid of everything, except for the h2 and in front of the h2; I'm just going to type in article, and then make sure there's a space between h2 and the article.

So what it should read is article space h2. Now you need to be very, very careful when you do this, because it's so easy to forget a space or not add a space in the right place or delete the wrong thing and I have something spelled correctly. So when you're writing your selectors and only when I'm writing in the code, it just seems that I'm paying a little bit more attention to that. But in this panel, it's sometimes really hard to tell exactly where spaces and dots are, so you want to be really careful about that and you want to test those selectors out, before you begin actually moving on to another task.

With that said, I'm going to do Save All, I'm going to switch this over to Live view, and as I switch it over to the Live view, if I scroll down, I can see there is the selector that we just styled and the styling is coming through so that worked out just fine. So even if you're the type of person that enjoys hand-coding, managing and organizing your styles through the CSS Styles Panel is often actually faster, to be honest, although you should strive to author your styles with a clear strategy and attempt to keep them organized as you work.

I mean, let's be honest, it's the real world. It's nice to know that even if things get a little out of hand, you can use the CSS Styles panel to bring order back to your chaos, without requiring an all-night coding session.

There are currently no FAQs about Dreamweaver CS6 Essential 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 Dreamweaver CS6 Essential 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.