Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Setting CSS preferences


Dreamweaver CS6 Essential Training

with James Williamson

Video: Setting CSS preferences

In this chapter we will explore Dreamweaver's powerful CSS Authoring and Management tools. Dreamweaver has made working with CSS a fundamental part of almost every workflow within Dreamweaver. As such, the options around creating and modifying your CSS can sometimes be a bit overwhelming. Fortunately, Dreamweaver has multiple preferences that allow customization of exactly how your styles are created, presented and formatted. Let's take a moment to go over these Preferences and customize how Dreamweaver goes about creating your CSS before we get into the actual tools themselves.
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 4s
    1. Understanding basic site structure
      3m 46s
    2. Exploring file naming conventions
      2m 10s
    3. Defining a new site
      5m 24s
    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 42s
    1. Creating new documents
      6m 49s
    2. Setting up new document preferences
      5m 31s
    3. Setting accessibility preferences
      6m 49s
    4. Working with starter pages
      4m 32s
    5. Managing starter pages
      13m 1s
  6. 37m 24s
    1. Getting text into Dreamweaver
      8m 44s
    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 38s
    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 40s
  9. 1h 11m
    1. Managing assets in Dreamweaver
      7m 30s
    2. Setting external image editing preferences
      4m 27s
    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 24s
    1. Link basics
      3m 17s
    2. Setting site linking preferences
      2m 20s
    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

please wait ...
Watch the Online Video Course 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
James Williamson

Setting CSS preferences

In this chapter we will explore Dreamweaver's powerful CSS Authoring and Management tools. Dreamweaver has made working with CSS a fundamental part of almost every workflow within Dreamweaver. As such, the options around creating and modifying your CSS can sometimes be a bit overwhelming. Fortunately, Dreamweaver has multiple preferences that allow customization of exactly how your styles are created, presented and formatted. Let's take a moment to go over these Preferences and customize how Dreamweaver goes about creating your CSS before we get into the actual tools themselves.

So to illustrate these preferences, I am going to work with just an external CSS file. I have the main.CSS file open from the 06_01 folder and it looks like a really complex rule, but it's really not. The only thing going on in this particular rule is we are describing what size the font should be, which font should be used for the headline, the amount of space through margin that the headline should have with other elements on the page, how much padding we should have inside actual heading itself and then a border and what that border should be all the way around the element. Now obviously here in this case we are just looking at the actual code itself.

How the code is generated is actually really, really important in terms of how efficient the code is, how easy it is to maintain. And if you're going to be using any of the tools inside of Dreamweaver they are going to create this code for you automatically, you want to take a little bit of control over how those code is created, so that it is created to your own personal standards. So the first thing I am going to do is go up to my Preferences. And I can go to Edit and choose Preferences, obviously on the Mac you will be going to Dreamweaver and choose Preferences. The first thing I want to show off is Code Coloring. I know we looked at this a little bit earlier when we were talking about Coding inside Dreamweaver, but I want to show you that it also applies to CSS as well.

So if I click Code Coloring, I can come down in the Document type and choose CSS. I can also choose to Edit the Color Scheme. So here, if I wanted to change this color scheme, perhaps you are somebody who's used to coding in another application and you are used to see your CSS looking a slightly different way, it's fine for you to come in here and change this. For example, the Properties and Values, they're a different shade of blue, but they are still very close to each other. So sometimes it's very difficult to tell when a semicolon (;) has been left off. So if you wanted to you could select Property and you could come up and you could choose maybe even a darker blue and if I click OK and click OK again, I can see that now I have a much darker blue for my Properties than I do my values and it's a little bit easier to see.

You're free to change that any time that you want, but of course, there's no sort of Reset to default button on this, so be very careful about changing them, if you're in a team environment. Somebody else might not be able to come back in and change it to the way they were used to working if they don't remember what everything is as well. Now thing that I really want to focus on in this movie is how the properties that you're seeing here are actually created by some of the various tools and procedures within Dreamweaver. So there are a lot of different ways to create styles inside of Dreamweaver. For instance so you could do it to the CSS Styles Panel or through their Properties Inspector and we are going to experiment with both of those particular methods in just a moment.

But when you're creating those styles visually through dialog boxes, obviously at some point Dreamweaver has to come in here and write the code. And you want to be in total control over how Dreamweaver generates that code. So I am going to go back up to my Preferences and this time I am going to come right down to CSS styles category, it's about midway down. The first set of options I have in this Preference are when I am creating CSS rules, should I Use shorthand notation or not? Now the code that you're looking at in this rule is obviously not using shorthand notation. Now if you are not familiar with CSS, and you are wondering what shorthand notation is; shorthand notation means instead of writing four separate properties for margin like we are doing here, where we explicitly state the top right and bottom and left margins, we just give it one margin declaration and pass the values into that.

It's a little bit more efficient in terms of writing your CSS. It's a lot more efficient in terms of maintaining and it certainly is going to save a little bit space and make your overall CSS file smaller. So it's a really good thing for you to do within your styles. So what I am going to do is I am going to go ahead and turn on Shorthand notation for everything, except for font. Now you will also notice that currently we are using shorthand notation for font. The font shorthand notation allows you to set the font style, the font weight, the font variant, the font size and the font family itself.

In this case the font size would be 1.4ems, while the font family would be Arial, falling back to Helvetica and sans-serif if Arial wasn't available. Well, we have left some stuff off here in this declaration and that's actually pretty common. But what we have left off is we have left off whether this should be bold or not, whether the font style should be italic or not or whether font variant, whether we should be using small caps. The problem with leaving that information off is that it assumes that you want the default, which in this case would be normal. So what happens when you use font shorthand notation is that sometimes you are overriding rules in a way that's totally unintended.

I have nothing against using it, Ijust want to be very explicit in terms of when I use it, I don't want Dreamweaver to go ahead and use font shorthand notation for me every single time and make a font declaration, because I may not want it to overwrite a rule that's a little further up the cascade. So that's something that I want to control myself. So I make sure that, you know, when Dreamweaver is actually writing in styles that it doesn't use shorthand for font notation. Now you may feel the exact opposite of me and that's the great thing about this is you have that option to say yes, I want to use shorthand notation there or no I don't.

You also control exactly when shorthand notation is used or not. You'll notice that the next set of options right down here for Use shorthand, our options are: If the original used it, according to all the settings above and then we also have the option of opening CSS files when modified. Now essentially what that is doing for us, is it's saying okay, do you only want me to use shorthand notation if the original rule itself, if I modify that rule if it used it, or should I go ahead and do it every single time I write a rule. I do like doing the According to settings above, so that every single time you write a rule, regardless of whether you are writing one from scratch or modifying the existing one, that it will go ahead and use the shorthand annotation settings.

The other option that we have here is when double-clicking a rule in the CSS Panel which we are just about to do, how would you prefer personally to edit that rule? Would you rather Edit it using the CSS dialog? That's a dialog box that comes up, that lets you Edit those Properties visual. D you want to Edit using the Properties pane which is a pane with in the CSS Styles panel or Edit using Code View. So if you're the type of person that really likes to hand code, you don't like to do a lot of things visually, you can click on Edit using Code View, when you double-click on a rule, it will jump to that rule within the code itself and bring that selector up.

If you leave it where is the default, which is what I am going to do, where it says Edit using CSS dialog; that's going to bring up the CSS rule definition dialog box and allow you to edit those rules visually. Okay, so I'm going to leave those Preferences the way I have them right there and click OK. And then we are going to see this shorthand in action. What I am going to do is I am going to come up to my CSS Styles panel and open that up. There is only one rule in the document, so it's really easy to find it, that's the h1 rule. I am going to double-click that. Notice, because of the Preference that I had setup, it brings up the CSS rule definition dialog box.

Now this may seem kind of weird to you right now because we are just editing a CSS file. But if we were on an HTML file that has an External CSS file attached to it, it wouldn't jump over to the External CSS document, it would just go ahead and open this up. And this will then allow me to Edit the rule and then click OK and continue doing what I'm doing. So also for people that are new to CSS, this is a nice visual way to edit Styles without having to worry about knowing the exact syntax of CSS. It's a very nice way sort of easing yourself into that, if you will. All right, what I am going to do here is I am going to change the font size to 1.2em, then I am going to go to the Box model category which is over here on the left hand side and I am going to change my Padding and I will change that to 12 pixels.

And notice that you've got the pull-down menu here, but if you want, if you don't want to have to stop to grab this pull-down menu, you could just type in 12px with no space, and when you hit Tab, notice it will resolve that for you. I am also going to change my Top margin, I am going to make that 2em and I will leave the Bottom margin at 1 and then finally I am going to go to my Border. And I am going to change my border so that instead of 1 pixel, it's 2 pixels all the way around. So essentially I've modified all of the properties that exist within the rule, I have modified some of the font declaration, I have modified the Margin, the Padding and Border.

So when I click OK, it's going to update the rule that we have on the page here, but remember it's going to update it using the Preferences that we just set. So when I click OK, I can see that now I have a much more efficient rule in terms of the size it's taking up and in terms of the actual number of properties that I would have to modify if I were doing this by hand. Although I do want to point something out; you will notice that the Margin, Padding, and Border now only occupy one property a piece, instead of like the four properties separately that they used to occupy, but look at the font. Notice that because I turned the Preference for font shorthand off, it actually took the font declaration, which was using shorthand property before, and it now split it out into the individual components, so font family and font size are now being defined separately.

And so, now in Dreamweaver I have it setup, so that any time a rule is modified or created through some other means than hand coding, it's going to format the syntax exactly the way that I want it. Now, not everybody likes to work with CSS the same way. Some of you may have different preferences than me. So I think it's great that Adobe makes it so easy for us to get Dreamweaver's workflow to match your own personal preferences.

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.

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 Already a member? Log in

* Estimated file size

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


You have completed Dreamweaver CS6 Essential Training.

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


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

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 ?

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:

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.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Start your FREE 10-day trial

Begin learning software, business, and creative skills—anytime,
anywhere—with video instruction from recognized industry experts. provides
Unlimited access to over 4,000 courses—more than 100,000 video tutorials
Expert-led instruction
On-the-go learning. Watch from your computer, tablet, or mobile device. Switch back and forth as you choose.
Start Your FREE Trial Now

A trusted source for knowledge.


We provide training to more than 4 million people, and our members tell us that helps them stay ahead of software updates, pick up brand-new skills, switch careers, land promotions, and explore new hobbies. What can we help you do?

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about 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

Sign up and receive emails about 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.