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

Modifying style properties

From: Dreamweaver CS6 Essential Training

Video: Modifying style properties

Tweaking styles as you work is just a fact of life. You're often going to have to revisit existing styles and rules and modify them based on design decisions or other factors you have going on at the time. Now thankfully, editing an existing rule and modifying the style property is an extremely easy thing to do with the CSS Styles panel. So, I have the index once again open here from the 06_06 directory in there. A couple things are going on here, I want to switch over to the Live view and show you what it is that we need to fix. One, you may have noticed in last exercise, the header graphic is not showing up.

Modifying style properties

Tweaking styles as you work is just a fact of life. You're often going to have to revisit existing styles and rules and modify them based on design decisions or other factors you have going on at the time. Now thankfully, editing an existing rule and modifying the style property is an extremely easy thing to do with the CSS Styles panel. So, I have the index once again open here from the 06_06 directory in there. A couple things are going on here, I want to switch over to the Live view and show you what it is that we need to fix. One, you may have noticed in last exercise, the header graphic is not showing up.

So we're missing our branding image here. And if I scroll down I can see it may not appear at first glance that anything wrong here, but to this headline; Fall registration is now open and Victor Stuesse winning the Lacie Awards. Both of those aren't the font nor the size that I want them to be. I need to change both of those things. Now I'm going to turn Live view off. I'll scroll back up. I need to focus on each of those regions individually. All right, so the first thing I'm going to do is I'm going to scroll through all of my styles and I want to find this home-header. So that's where the background graphic should be displaying, so that image that we're looking for is actually a background image. And once I select that rule, I need to take a closer look at the property, so I'm going to take this divider move back up again.

Now, you may have remembered from an earlier movie that when we look at the properties of rule by highlighting it the way we're here, we have the option of changing those properties. And if I click on this to change the URL, because obviously it's pointing to the right graphic, main_back, but the location here is wrong, it's going up like two directories and looking for images, and that's incorrect. So, I could change that, but I don't get an option here to browse. Now I'm free to go ahead and type this in. So, if you know the path, if you have that path memorized or you know the exact file or you know kind of what's wrong, you can make that change manually.

But in this case, what if you don't know it? Well, you either would have to go out and write it down and then come back and edit it or go in to code. Or you can use option number two, which is to go up to the rule itself, which is home-header and double-click on that. Because if you double-click on that, remember, that brings up the CSS Rule Definition dialog box and this gives us far more manual control over certain aspects, such as using images. So, if I click on the Background Category, I can see there's my Background-image and I can actually browse to make sure I'm resolving that on the right location.

So, if I go in the 06_06 folder, go into Images, and once again I'm going to change my menu here to make this a little bit easier for me to find, I'm going to scroll down and find this file right here, which is main_back, I'm going to go ahead and click OK. Now that's the only thing I need to change. I don't need to change any of the other properties. I'm going to go ahead and click OK. As soon as I do that the image shows back up again and everything is great. Now I want to point something out over here in the related files. You can see, we have the option looking at the Source Code or there's the main.css.

You might see that little asterisk (*) right above the main.css. What Dreamweaver is telling you there is that, hey, this code has been changed. It's been modified in some way, and it's letting you know this has been modified since the last time it was saved. It's sort of warning you if you will that this document currently is in an unsaved state, so if you had a crash or something would happen, those changes that you just made aren't guaranteed to persist. This is also true, before you upload it, you might want to save it. So what I'm going to do is I'm just going to go up to File and choose Save All, that's going to save not only the current index file, but also the externalmain.css file as well.

Okay, now, you don't have to double-click on a rule every single time you want to edit it. Most the time you'll be able to edit straight from the Property section over here. I'm going to scroll down and find headline that we need to change and I'm going to click inside that. Now the reason I want to click inside this and then select the h2 tag is remember it makes it little bit easier to find that rule. You know earlier we were sort of scrolling up or down, there are lots of rules in the style sheet, and lot of times you're going to spend half your time scrolling up and down, trying to find the right rule or find where that rule is organized.

So, the best thing to do if you want to target something very quickly is to click inside of it, use the Tag Selector to select the element that you're targeting, in this case the h2 and then you can just switch over to the Current rule. When you switch over to the Current rule right here in this middle pane, you can choose the selector that you're looking for. So you may even have multiple selectors that apply to that particular element and apply their styles in sort of a cumulative fashion, but you still filter through the rules that are applying to it, to find exactly what you're looking for. In this case, its article h2, that's the one I want.

Okay, one of the first thing I want to do is I think the font size is a little large, at 2ems, so I'm going to change that, I'm going kick that down little bit to maybe 1.5ems. So I can just click right here in the value for a font size and I can choose 1.5ems. Now I also want to set the font, the font isn't correct either, but I notice that property is not currently part of this rule. So in order to change that, this time I'm going to click to add a property, and again, I can add a property from this pull down menu or I can simply type it in, if I know what property I want to add.

In this case I want to add font-family, and then if I hit Tab, it takes me over to the value side of the Property's dialog here and now I can grab the pull-down menu and choose from the list that we were working with earlier. Now if you member earlier, I wrote out Bitter, Georgia, Times, and serif as the font stack that I want to be able to use, and I saved it as a favorite. By saving that as a favorite within that dialog box, that means that anyplace in Dreamweaver, Code Hinting, over here in CSS Styles panel, whether I'm actually hand-writing the code, it's going to make that available to me, so that is a really neat feature and something you should take advantage of.

In this case I'm going to choose Bitter, Georgia, Times, serif, and we have it, I'm going to do Save All again, and then I'm going to turn on the Live Preview and I'm going to check out the changes that we've made. So, there is our background graphic, it's appearing, and now the headline over here is the proper font and the proper size that I needed. You know, so far we focused on the CSS Styles panel and its considerable abilities to write, organize and manage styles within your sites. However, it's not the only place that you can edit your styles in Dreamweaver. And in our next movie we're going to explore one of those alternate methods as we use the Properties Inspectors to control CSS.

Show transcript

This video is part of

Image for Dreamweaver CS6 Essential Training
Dreamweaver CS6 Essential Training

90 video lessons · 53430 viewers

James Williamson
Author

 
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

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 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

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.