Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
With our outermost container created, let's come over to our CSS rule and create another rule. We are going to create another class. This one is going to be called carousel_container. Let's choose Ok. Inside of here, we are going o come down to the Box properties. We are going to set a Height of 340 pixels. We don't have to worry about the Width because it will pick up the width from the parent, which is set to 760. For Margin, we are going to set 0 for all.
Next, we are going to come down to Background settings. Let's come down to Background-image. Let's choose Desktop/myCarousel/images, and we will choose background.jpg and click Choose. Next, under repeat, we are going to choose no-repeat, and we are going to set a 0 on the X and 0 on the Y position, then choose OK. Now we want to put this inside of the my_carousel container, so I am going to get my cursor inside of here, maybe after the word content, come up to the Insert panel, choose Insert a Div.
Let's come down to Class and choose carousel_container and then click OK. We will see the carousel container now is placed in here. We see some default text for the carousel container, and then we can see the background being positioned in here as well. Now that the carousel container div is in place, let's come over to our CSS Rules and create another rule. I am going to create another class. This rule is going to be called caption_container. Make sure it's set to Class. Let's choose OK.
The Properties here, let's go down to Box properties. We are going to set this to 435 pixels wide. For Margin, let's uncheck Same for all, and we are going to set 0 on the Top, Right, Bottom, and on the Left, we are going to set a Left of 165 pixels. For Padding, let's uncheck Same for all. We are going to set 0 on the Top, 0 on the Right, 0 on the bottom, and 20 pixels on the Left. This will make sure that text doesn't touch the left border, which is acting as our stem. Lastly, let's come up to the Border settings. Let's uncheck Same for all for Style, Width, and Color. Under the Style column for Left, let's come down and choose Solid; for the Width, we will set that to 3 pixels; and for the Color, we are going to type #713e1b.
That is going to give us that dark-brown color. Let's choose Ok. Now back in the page, we need to make sure that this is inside of the outermost container but not inside of the carousel container, so after the S in class, from the original my_carousel default text, let's come up here and choose Insert Div. We will choose the caption _container, then click OK. Now, when I click away, we can see a very slight indication here of that left border and the default text for caption_container in here as well.
Next, we want to bring in the leaves graphic, so let's get our cursor after the word Goes in the outermost container for my_carousel. With our cursor after the word Goes, let's come up to the Insert panel. Let's come over to the Common settings. Let's click on images. Let's come down and choose leaves.png, then click Choose. We can type leaves for the Alternate text, then click OK. Now we need to bring in one more div, and this is going to be the div that's going to hold all of the data. So let's come over to our CSS Styles. Let's create another class.
Let's call this carousel_data. Let's choose Ok. We are not going to set any properties at this point. And then we are going to get our cursor after the word Here, in the outermost container. That's my_carousel goes here default text. Let's come back up to Layout in the Insert panel, insert a div tag, and let's come down and choose carousel_data, then click OK. At this point, we have four items inside of the my_carousel outermost container. We have our carousel container, we have our caption, we have our leaves, and we have our data div.
At this point, we can start deleting all of the default text from the my_carousel goes here. So let's come in here and get rid of this text over the word Here after the leaves. Let's get rid of for class before the last one, and then content at the very top. Now if I scroll through, I should just see these four individual items. If we switch over to Code view and take a look at what's happening in the code-- I'll just come in here and format this little bit-- we can see that we have the my_carousel container and inside of there, we have four items: we have the carousel_container, the caption_ container, the leaves, and the carousel_data.
And all of these are contained in the outermost container of my_carousel. This gives us that exact structure that we were after in order to create the layout. Let's switch back to Design view. At this point let's choose File > Save All, and in the next movie we will focus on the containers that go inside of the carousel container.
There are currently no FAQs about Create a Rotating Carousel with jQuery and 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.