Viewers: in countries Watching now:
This course shows how to use the combined power of Dreamweaver and CSS to create compelling, easy-to-maintain web page layouts. After demonstrating how to maximize Dreamweaver's built-in layouts (including HTML5 layouts), author Joseph Lowery reviews essential layout concepts such as the box model, document flow, and the proper use of floats. Next, the course covers how to develop an array of basic 2- and 3-column layouts from the ground up, and then how to customize them with advanced features like CSS3 rounded corners, faux columns, and Spry widgets. The course concludes with a demonstration of techniques for converting a desktop layout to one better suited for tablets and smart phones.
Tabbed panels provide designers with a great way to group content that is extremely intuitive to use. Like the other Spry layout widgets, Tabbed panels can be highly customized. Let me show you what I mean. On the page that we are looking at here, which is tours.htm, you can see a series of tour descriptions one after another, there's four in here, but we could have many more, and while that's all well and good, it does take up a lot of screen real-estate. Perhaps, a better approach would be to group them all in a Tabbed panel and I have the final version of what we're going to be doing during this video to show you here.
So here we have the Tabbed panels. When we hover over any of the unselected ones, we get a different color and a slightly different color when you are just hovering over the selected one. But as you can see, it's the same content, and it groups it really, really well into one concise space. So let's get started on bringing in our Spry Tabs, and customizing them with this web site. First thing I am going to do is drop out of Live View, and then scroll down, and then I want to place my cursor right in front of these series of tour descriptions that we see here, but I want it to be in the div tour descriptions.
So I am going to go ahead and select the first one, and then press the Left-arrow key once, and that will move my cursor right in front of the initial tour descriptions, but keep us within that div. So now we're ready to bring in the Spry Tabbed panels. So let me open up the Insert panel just a little bit more, let me close up the CSS Styles panel, so that I can see my Insert panel, and then click Spry Tabbed panels.
Dreamweaver will insert the default configuration for the Spry Tabbed panels. It puts in 2 initially. You'll recall that there were 4 descriptions. So I'm going to go ahead and increase the number of Tabs. Go down to my Property Inspector, and select the second tab, so any tabs I bring in, will appear after the second one, and click the Add panel Plus icon twice, there is once, and there is twice.
So the next step is an easy one. Let's go ahead and just change the labels for each of these Tabbed panels, So I am just going to click into the first one, and select over that little eye symbol. The eye symbol is your path for switching to different content under each tab in Dreamweaver, but I just have the label selected here. So I am going to call this Backpack. Let's see what the second one is. Second one is California Calm. So let's make that just Calm, the third, Hotsprings, and then the fourth one Cycle California.
Okay, very straightforward. Now, sometimes when you're having to modify the Spry widget CSS, you'll want to create another CSS file, link to it, and then copy all the Spry widget CSS into that and make your modifications there. That works if you have quite a few modifications. However, in this situation, we only have a couple of changes to make. So I am going to take a more direct approach, and just modify the Spry Tabbed panel CSS directly.
Let's bring open the CSS Styles panel. I will close up Insert, and open up CSS Styles panel, and then switch over to All so you can see the SpryTabbedpanels.css that is located there. However, before we start working with the SpryTabbedpanels.css, it looks like there is some work to be done here with the main.css. One of the initial problems that I see is that the tabs aren't lining up the way that they normally do when you insert the Spry Tabbed panels.
Normally, they were going to be flush left, and then no separation between the tabs and the content. Well, let me go in to Live View, and then when I scroll down to my Tabbed panels, you can see that there's a separation there, that really shouldn't be there. It should be flushed all the way over to the left and down. So when I move from one tabbed panel to the next, you're really not getting that "Tab" effect. So there are obviously some rules set up already in this main.css that's affecting those Tabbed panels.
In the next movie, I'll show you how to uncover those rules, and how to address that problem.
There are currently no FAQs about Layouts with CSS in Dreamweaver.
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.