Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
Join author Paul Trani as he shows how to create a web site step by step with Adobe Dreamweaver CS6, one of the industry's leading web authoring tools. But not just any web site. A responsive HTML5 web site that works across multiple browsers and devices, complete with rich imagery and text, a robust portfolio, video content, and even a contact form. This course covers how to use web standards such as HTML5 for structure and Cascading Style Sheets (CSS) to control colors, fonts, navigation, and more. The course also demonstrates how to test across multiple browsers and devices and upload your new site to the web.
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.
Find answers to the most frequently asked questions about Creating a First Web Site with Dreamweaver CS6.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.