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

Using the Code Navigator

From: Managing CSS in Dreamweaver

Video: Using the Code Navigator

Although we've explored editing styles through the CSS Styles panel and the Properties Inspector, we haven't talked about the Code Navigator yet. The Code Navigator is an invaluable tool that gives you an easy way to access and modify your styles from anywhere in your document, even if you're not 100% sure which rule contains the styling that you need to change. So let's take a closer look at using the Code Navigator. I am going to scroll down a little bit, and looking at my tour descriptions down here, this formatting is not exactly the way that I want it. I want the text wrapping this image.

Using the Code Navigator

Although we've explored editing styles through the CSS Styles panel and the Properties Inspector, we haven't talked about the Code Navigator yet. The Code Navigator is an invaluable tool that gives you an easy way to access and modify your styles from anywhere in your document, even if you're not 100% sure which rule contains the styling that you need to change. So let's take a closer look at using the Code Navigator. I am going to scroll down a little bit, and looking at my tour descriptions down here, this formatting is not exactly the way that I want it. I want the text wrapping this image.

I mean, I like a little bit better spacing here for our rating text. So the first thing I am going to do is just click on this Big Sur image. I want to click on that. If I pause for a couple of seconds or so, this icon shows up, and it looks like a little steering wheel, or paddle wheel. That is the Code Navigator. If I hover over that and click it, it will bring up the Code Navigator itself. Now, that's one of the main reasons that a lot of people don't like the Code Navigator. Every time they click somewhere, a couple of seconds later up comes this little icon, and it can get to be a bit annoying. So if you click on that icon to bring up the Code Navigator, one of the things that you can do is disable it.

So by clicking that check box, you are turning that off, and you're not going to be bothered by that icon every single time that you click somewhere. You'll see that now when I click somewhere and just sort of hang out for a second. It doesn't come back up. So now that you have sort of gotten rid of the annoying factor of the Code Navigator, what happens if you need it? How you get it to come back up again? Go ahead and select your image. On the PC, you want to hold down the Alt key; on the Mac, you are going to hold down the Command+Option key, and then with those keys being held down, just simply click on the element that you want to bring up the Code Navigator for. So all I have to do is click, up comes the Code Navigator, and there we go.

So what is the Code Navigator actually showing us? Well, it's showing us the cascade of rules, showing us all of the rules that are applying formatting to this element or this particular item, in this case the image that we just clicked on. You can see that the selector on the bottom is the one closest to the rule. Then the selectors above it are sort of receding in the order of importance through the cascade. So by hovering over these, we get to see the actual properties being set and their values, which is really cool. It's a nice way to sort of get a summary as to what's happening here. So we can see that right now, this #mainContent .tourDescription img rule really is just applying some padding.

So if I want to change that, all I have to do is click that particular rule, and it's going to focus on that. It's going to focus on it in two places; one is within the code. You'll notice that it switches right to a split screen view, goes right to the CSS file, and jumps right down to the rule that I need. That is amazingly efficient. Rather than having to switch over to the code myself and scroll through all the rules and try to figure out which one's applying the formatting, I can do a single click, use the Code Navigator and go right to that rule. So that's really nice. So what I am going to do here is I am going to go to the last property which is padding, hit Return, or Enter, and I am going to type in Float, and I am going to float that to the left, once again, using code hinting to help me finish my coding here. So float:left;.

I am going to do a Save All, and if I switch back to Design View, I can see now the text is wrapping that. Perfect! Now, I mentioned that it was going to focus on that selector in two places. We just saw how it focused on it in the Code view, but it also focuses on it in the CSS Styles panel as well. Let me show you that. So I am going to go over to CSS Styles panel, double-click that tab to sort of expand that, and I might double- click the Files tab to collapse it. So I just want to focus on the CSS Styles panel. So you can see this text right here: Optional 4 day tour available Rating: Medium.

That's sort of still in this paragraph, and I'd like it to be on its own line and have proper spacing here. So what I am going to do is, once again, click inside that, and remember, if I am on the PC, I am going to hold my Alt key down; if I am on the Mac, I am going to hold Command+Option. I'll click to bring up the Code Navigator and again, notice here I am getting an entirely different list of rules based on the element that I have selected. So the #mainContent .tourDescription span.option is the selector that I want to choose. Now, I could go above this. If I wanted to affect all paragraphs, I could click here. So I want to affect just the selected text, so I am going to click right there.

Now, it still goes into Code view, but notice that also in the CSS Styles panel, it scrolls down, finds that particular selector and highlights it. So now, I am able to go ahead and set properties here, as well. So I am going to go ahead and add another property here, and I am going to add the Display property. I will hit Tab, and I'll do a display of block. As soon as I hit Return, I can once again go back to Design view. Now, we can see that it is indeed on its own line. It's displaying as a block-level element, and that is exactly what we want it to do. So if you're working with really complex code, and especially if you have elements that are being formatted through various rules, the Code Navigator can help you really cut through that clutter, showing you exactly which rule you need to edit and making finding that rule in your Styles, or your CSS Styles panel as simple as just a single click.

Now, if you've never used the Code Navigator, or if you've just been annoyed by the icon that keeps coming up, my advice is to take control over this really powerful feature and go ahead and add it to your workflow.

Show transcript

This video is part of

Image for Managing CSS in Dreamweaver
Managing CSS in Dreamweaver

41 video lessons · 20864 viewers

James Williamson
Author

 
Expand all | Collapse all
  1. 4m 12s
    1. Welcome
      1m 10s
    2. Who is this course for?
      1m 5s
    3. Using the exercise files
      1m 57s
  2. 1h 21m
    1. Controlling CSS in Dreamweaver
      2m 34s
    2. Style formatting options
      4m 59s
    3. Controlling shorthand notation
      6m 9s
    4. Building a style-focused workspace
      6m 10s
    5. CSS Styles panel overview
      8m 18s
    6. The Properties Inspector
      6m 39s
    7. Creating styles visually
      11m 32s
    8. Hand-coding styles
      8m 15s
    9. Code hinting and code completion
      7m 11s
    10. Modifying styles visually
      5m 24s
    11. Using the Code Navigator
      4m 47s
    12. Using CSS Inspect
      9m 52s
  3. 1h 14m
    1. Structuring style sheets
      4m 52s
    2. Writing a style header
      2m 40s
    3. Building a color guide
      6m 5s
    4. Writing a style sheet table of contents
      8m 46s
    5. Creating sections for styles
      9m 10s
    6. Using the CSS Styles panel to organize styles
      10m 29s
    7. Resolving conflicts
      7m 3s
    8. Organizing style properties
      9m 33s
    9. Writing a CSS reset
      5m 20s
    10. Writing global classes
      3m 57s
    11. Creating a style guide
      6m 6s
  4. 1h 7m
    1. Preparing custom starter pages
      11m 32s
    2. Building custom starter pages
      10m 8s
    3. Working with code snippets
      9m 54s
    4. Writing snippets
      11m 30s
    5. Importing snippets
      6m 3s
    6. Understanding snippets libraries
      8m 11s
    7. Building a CSS framework using snippets libraries
      10m 36s
  5. 52m 15s
    1. Writing a print style sheet
      10m 3s
    2. Creating print-specific styles
      10m 45s
    3. Preparing modular styles
      4m 33s
    4. Creating modular style sheets
      7m 9s
    5. Checking browser compatibility
      6m 25s
    6. Using conditional comments for Internet Explorer
      6m 58s
    7. Optimizing CSS with Dreamweaver
      6m 22s
  6. 38s
    1. Goodbye
      38s

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