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

Modifying type directly in the CSS Styles panel

From: Typography with CSS in Dreamweaver

Video: Modifying type directly in the CSS Styles panel

As you become more familiar with CSS rules, Dreamweaver offers a number of paths for changing CSS properties more quickly. The CSS STYLES panel provides a wealth of information about your CSS rules, as well as direct access to modify existing and add new CSS properties. Before we turn our attention to the CSS STYLES panel however, let's make sure that our preferences are all set as desired. So I'll go to Dreamweaver > Preferences on the Mac; on Windows, of course, you would choose Edit > Preferences.

Modifying type directly in the CSS Styles panel

As you become more familiar with CSS rules, Dreamweaver offers a number of paths for changing CSS properties more quickly. The CSS STYLES panel provides a wealth of information about your CSS rules, as well as direct access to modify existing and add new CSS properties. Before we turn our attention to the CSS STYLES panel however, let's make sure that our preferences are all set as desired. So I'll go to Dreamweaver > Preferences on the Mac; on Windows, of course, you would choose Edit > Preferences.

And now let's go down to the CSS Styles category. And here, I'm going to go ahead and enable shorthand for all of the various options. Using shorthand with CSS really condenses your properties, and once you become familiar with it, it is actually a lot easier than working with the expanded code. Now I also want to make sure that I use shorthand according to the settings above, and then also open up CSS files when modified. Finally, this is a personal preference, but I like using the CSS dialog for editing.

So I'm going to keep that option, when double-clicking in the CSS panel. Alright! My preferences are set, I'll click OK, and now I'm going to open up the mission.htm file found in Chapter 1 > 01_04 folder. Now as an example, I'm going to use the footer on this page. Let's scroll all the way down, until you see the text Explore California, and let's select that. I'm going to go ahead and to select the h1 through the tag selector, just to make sure that I've got all of the tag.

And here in the Property Inspector, you can see that it does have a specific Targeted Rule for #footerBody, # footerRightCol (or Column), h1, and it's defined in main.css. Now in order to work with the CSS STYLES panel, I'm going to go ahead and open it up over here and double-click it. I'm going to close the FILES panel as well, just to get maximum room. If you're unfamiliar with the CSS STYLES panel, the first thing to notice is that there are two modes. There is an All mode, which shows you as you might expect, all of the CSS rules, and I can scroll down and see that there's a good many of them.

And there's even a second style sheet applied here. And each of these rules, when I select one, will show the various properties in the Properties pane below. Now there's also a Current mode, and this shows you just the properties and rules applied to the current selection. So since we have our h1 and the footer selected, that is what is showing up here. And here is the same rule in the Rules pane that we see in the Targeted Rule list.

And here are the various properties listed for it. You can see a summary of all of the properties applied in the very top pane, the Summary pane. Now you can see that some of the properties that you see up here, like margin 0 and padding 0 don't have a correlated property down in the Properties pane. That's because those properties are inherited. And as you scroll over them, you'll see a tooltip popup that shows exactly where that property is set, so you can find it if you need to.

One of the great things about the CSS STYLES panel and especially the Properties pane is the direct access that you have to changing properties values. So let's go ahead and make a couple of changes here. I'm going to go down to where it says letter-spacing, and notice that when I click into the 1 em value, it splits into the numbers and the measurement unit listing. So I'm going to change the letter- spacing to 0.2 ems, press Tab, and Tab again,, and then you can see Explore California expands a little bit.

Now let's also change the size of it, and this time I'm going to bring it down a little bit. From 1.6 ems, let's make that 1.4. Here you see an example of the shorthand that was set up when we changed Dreamweaver Preferences. Now this code was already here, so Dreamweaver just recognizes it and doesn't try to rewrite it. But the CSS STYLES panel does allow us to go in and change any of those elements, even though they're in shorthand. So I'm just going to go ahead and click into the properties there and let's change the 1.6 em to 1.4. And you can press either Return or Enter or Tab; I'm going to go ahead and hit Return.

And you'll notice that the size got a little bit smaller that time. Now you can use the Property pane in combination with other interfaces. So for example, let's say I wanted to change the font family, so I could go ahead, click into the font values and change all the fonts in the font family by hand, but that's a lot of work and trying to make sure that you get the font names right is often difficult. The better pathway is to deselect that and then go down to the Pencil icon and click Edit Rule, which will open up the CSS Rule Definition dialog box, and we can go to the Type category and then just choose a different one from the list.

I'm going to go ahead and choose Arial, Helvetica, sans-serif, click OK, and now our typeface has changed as well. You see how quickly you can modify properties and you can add them just as easily. I'll go to the Properties pane and here we see the Add Property link. If I click on that, the property field opens up and let's type in text-transform, and then I'll press Tab.

And now I could enter in the value manually or if I want to make sure I've got it right, go ahead and choose it from the list, and in this case, I'll choose uppercase. And there you can see Explore California became uppercase. Once you're just the slightest bit familiar with CSS, you'll find yourself returning to the CSS STYLES panel time and again, because of the immediate access it offers for adjusting your rules.

Show transcript

This video is part of

Image for Typography with CSS in Dreamweaver
Typography with CSS in Dreamweaver

36 video lessons · 8027 viewers

Joseph Lowery
Author

 
Expand all | Collapse all
  1. 3m 52s
    1. Welcome
      1m 19s
    2. Using the exercise files
      2m 33s
  2. 19m 16s
    1. Working with the Property inspector's HTML tab
      2m 0s
    2. Making the most of the Property inspector's CSS tab
      4m 57s
    3. Defining and changing type with the CSS Rule Definition dialog
      6m 16s
    4. Modifying type directly in the CSS Styles panel
      6m 3s
  3. 19m 45s
    1. Understanding type measurement unit options
      2m 50s
    2. Working with pixels
      2m 34s
    3. Defining a percentage-based page with ems
      6m 51s
    4. Letting users set page type size
      7m 30s
  4. 17m 36s
    1. Getting to know the basic font categories
      1m 32s
    2. Employing web-safe fonts
      3m 20s
    3. Defining new font families
      3m 22s
    4. Exploring CSS3 typeface options
      3m 9s
    5. Setting up @font-face
      6m 13s
  5. 9m 39s
    1. Dispelling the myth of web-safe colors
      1m 13s
    2. Applying color to type
      4m 52s
    3. Incorporating semi-transparent type
      3m 34s
  6. 19m 46s
    1. Setting the font-weight
      3m 48s
    2. Mandating font case
      2m 25s
    3. Exploring font variants
      1m 50s
    4. Utilizing white space effectively
      3m 40s
    5. Changing letter and word spacing
      2m 20s
    6. Defining first-line variations
      2m 19s
    7. Inserting drop caps
      3m 24s
  7. 20m 17s
    1. Applying CSS3 text effects
      5m 26s
    2. Designing type gradients
      8m 27s
    3. Rotating text with CSS transform
      6m 24s
  8. 15m 21s
    1. Implementing advanced headings with HTML5
      3m 11s
    2. Preparing CSS3 multiple-column layout
      4m 50s
    3. Future type: Defining CSS Regions
      7m 20s
  9. 24m 51s
    1. Styling unordered lists
      6m 51s
    2. Specifying a sequence with ordered lists
      5m 14s
    3. Applying definition lists
      7m 19s
    4. Targeting list items with CSS3 nth child
      5m 27s
  10. 20s
    1. Next steps
      20s

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.

Join now "Already a member? Log in

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 Typography with CSS in Dreamweaver.

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.