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

Customizing the menu bar

From: Creating a First Web Site with Dreamweaver CS6

Video: Customizing the menu bar

Anytime you start working with maybe a template or any added widgets, you immediately not only want to start customizing the content, but also how it looks. And what I've done is I've inserted this Spry menu bar right up here. It's my navigation. As I take a look in my Insert panel, that's where it's come from. And it's added that menu, and as I select it, you can see I was able to customize the text, but I want to go beyond of this, because if I select Live View, you can see how that looks.

Customizing the menu bar

Anytime you start working with maybe a template or any added widgets, you immediately not only want to start customizing the content, but also how it looks. And what I've done is I've inserted this Spry menu bar right up here. It's my navigation. As I take a look in my Insert panel, that's where it's come from. And it's added that menu, and as I select it, you can see I was able to customize the text, but I want to go beyond of this, because if I select Live View, you can see how that looks.

In fact, as I roll over these different buttons, or these links, you can see what that looks like. So what I need to do is I actually need to move this whole menu bar over to the right-hand side. I want to change the rollover color to give it that red pop. I want to center the text, and I also want to make sure this expands the entire height of this nav bar. So those are the changes I need to make. So I need to start changing the style of this. How I do that, you guessed it. I would go to the CSS Styles. Right down here, oh, look SpryMenuBarHorizontal.css stylesheet that was added. This is great.

So I could jump in here and start checking out these different items. In fact, I can start to see even maybe where that blue is coming from. So I encourage you to kind of click through these and see where things are coming from. I want to change the whole horizontal bar and move it to the right-hand side. I can modify the properties here or I can just double-click on the selector. Double-clicking on it opens up this rule definition, and I can start modifying it from here.

In fact, if I go down to Box category, I want to float it off to the right-hand side. Well, let's go to Float, and let's float it to the right. So I hit Apply. It moves it over there. With that done, I'm going to go ahead and click OK, because I want to start modifying each one of these links. That's right. These are actually links. So I want to come down here. What is that A? So that A means it's a link, the A link, and as I select it, I'm able to see, oh, that's where that background color is coming from.

That's where the color of the text is coming from. So I can double-click on that selector if I want to, or I can change it right in here, changing that background color or even maybe turning it off, if I want to, entirely, just like that, and changing the color of that text to red. Well, that's looking better. I like how that's coming along, looking very nice. Now if I go ahead and roll over any one of these links, you can see I actually need to center that text to make sure it fills this entire nav bar.

Those options actually aren't right in here, so I do need to double-click on it. This selector, if I double- click on it, I can edit it now. So going into the Block category, I can align the text. So here I'm going to center the text, clicking Apply. It will move it over. So now it is centered, and that looks good, at least horizontally, but now I need to center it vertically as well. So in order to do that, I'm going to go to the Box category. And right in here for the Height, I happen to know the height is about 31 pixels. I can click Apply.

So I've just made the height 31 pixels. Let's take a look at that, by the way. I'm going to click OK. It did make that height 31 pixels, but what's going on here? Where did you get that 31 pixels? Well, if I go into my stylesheet.css, I can check my nav bar. You can see that it's 31 pixels high. But still, I have that same issue where really this isn't working. It's not the right size. So I'm going to double-click on it and just to make things easier, I'm going to change that background color, maybe to white, just so I can see the size of that box, because that's what I was manipulating is this box.

But as I take a look in here, look, there's padding around it as well. So I might want to just check Same for all and maybe just clear this out entirely. So let's see what happens. Click Apply. That's much better. That's good. It actually fits that height. But my text is up too high. So what I can do now is to turn off Same for all, and right in here I can space it down from the top, let's say about 10 pixels. Clicking Apply. Let's change this to pixels, by the way, clicking Apply.

And it's centered it so that looks a lot better, but they're still adding that 10 pixels to that 31. So it's actually 41 pixels high. So all I need to do in here is change the height to 21, because 21 plus 10 equals 31, and there we have it. I'd say that looks pretty good. I like how this is coming along. In fact, I can go back in here to the background and remove that background color just by clicking the Delete and Apply. I like that.

Clicking OK. Everything is looking pretty good so far. A couple more things I need to do. I'm noticing this rollover color. It's not bad, but I might want to change that to red. So it's just a matter of finding that color. So that's where it is, this a hover is what it is. Changing that blue to red. In fact, any submenu items that have that same highlight I'll change to red, and really it's just a matter of finding any of that blue color and changing it accordingly.

With that done--and keep in mind that I do have Live view on. That's what enables me to see it, and everything is looking good. Now keep in mind this page is responsive so I need to see how it looks maybe even as it responds to different screen sizes. I will even go down to this Mobile size. So I'm checking it. I'm realizing, you know what, this bar is still just too wide. So I need to condense this menu. And that's really how I had the original design. So turning off the mobile size, I need to get rid of all of this padding at least.

So I don't have as much of it. And what I'm going to do is I'm going to go in here to, well, it's not my menu bar horizontal, because it actually covers the entire area. This happens to be list items, so that's what these are, list items. And in here this is where I need to start to take a look at, you guessed it, the width. So I was able to discover the width right in here for these list items, and from here I can change this to 8 ems to, let's drop this down to about 5 ems.

Hitting Return, and it's moved it over to the side. And that's much better. That's how I like it. Let's go down to my mobile version, and you can see how everything fits in nice and neat. So really, it's just a matter of once you've added any sort of widget, to be able to customize it based on the CSS. And really, it's just a study and figuring out where some of those elements are and understanding how to modify them. It's pretty easy, either using this Properties panel or double-clicking on the item right there. But with the set up I'd say my page is looking pretty good, and I can move on to even starting to link up these various pages.

Show transcript

This video is part of

Image for Creating a First Web Site with Dreamweaver CS6
Creating a First Web Site with Dreamweaver CS6

30 video lessons · 40430 viewers

Paul Trani
Author

 

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 Creating a First Web Site with Dreamweaver CS6.

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.