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

Improving data presentation

From: Creating a First Web Site with Dreamweaver CS4

Video: Improving data presentation

The whole goal of this website is to deliver information. This particular page throws a lot of content at the user and although this might work in print, on the web it really does seem overwhelming. I would rather give the user a page with collapsed content and allow them to select what they want to view next and luckily Dreamweaver gives me the ability to do this. So I'll close this browser and I'll go into Dreamweaver. First thing I'm going to do is just delete this About page text. And as I scroll down, you can see all this text but if I look at it more closely, it's really grouped in two sections.

Improving data presentation

The whole goal of this website is to deliver information. This particular page throws a lot of content at the user and although this might work in print, on the web it really does seem overwhelming. I would rather give the user a page with collapsed content and allow them to select what they want to view next and luckily Dreamweaver gives me the ability to do this. So I'll close this browser and I'll go into Dreamweaver. First thing I'm going to do is just delete this About page text. And as I scroll down, you can see all this text but if I look at it more closely, it's really grouped in two sections.

In fact, we have Published Writings and Photographs, we have Employments and then we have Travels. I really need a module that will contain these three areas and what I'm going to use is I'm going to use what's known as Spry. In Dreamweaver again, I have the Classic workspace selected and I'm going to go over to the Spry tab and really I'm given all of these elements and what Spry is, is it's a collection of technologies that add functionality to my webpage.

And in this particular case, what I want to add is this Spry Accordion. I'm going to mindful of where my cursor is and it's just going to be below that first paragraph and then I'll select Spry Accordion and it inserts it wherever my cursor is. All right, it's looking good so far. In fact, if I select that Spry Accordion, I can see my Properties panel tells me what it is. I can give it a unique name. I'll call it aboutAccordion. All right, looking good so far.

But really there is just some generic labels and generic content in here. So I really want to replace this. So I'm just going to select Label 1. I want to replace this text with this Published Writings and Photographs. So what I'll do is I'll select this text. I'll go to Edit and I'll cut it and then I'll just sort of highlight Label 1 and I'll paste the text I just cut and I'll paste it right in place. Kind of tough to see but I'll fix that later. Okay, the next step is the content.

Again, I'll just delete that text here and select that content for that area and move it right below where it needs to go. Again, I was just able to click-and -drag that content right in there. Next step is Employment, where I can select that text. Cut it again and right here for Label 2, I'll do a paste. All right, looking good so far, but notice there is no content area for me to paste this content into.

So all I really need to do is just roll over that bar and select this eyeball to expand that content area out. Again, it's just a matter of deleting that word Content 2 and taking this content, selecting it all and moving it right in there. You can see I'm nesting all of this content in there. So far so good. You will notice that I only have two panels and I really need three sections. Well luckily if I just select this Spry Accordion, I can go down to the Properties panel and I can add a panel.

In fact, here are my first two listed. What I can do is just hit this plus sign and that will add a third panel. Now, you can see that it adds it right in here and again, it's the same process of selecting say the word Travels, cutting that text, selecting Label 3 and then pasting it. Next step, Content 3, I'll just delete that word there and I want to select this content including the photo, and just click-and-drag it right in there.

So far so good. In fact, I'm going to go ahead and save this page. So I'm going to go to File > Save and this is what I'm given. It's asking me to copy these dependent files. In general, these files are being copied to my local site and I need to make sure I upload them to my server in order for this page to work because this is really not only the functionality to make this Accordion work, but as well as a cascading style sheet allowing me to customize the look of this as well.

So it's adding those two files in there and I'm really thankful that I'm given this dialog box, so I know to upload those and also know that I can actually change the look of this Accordion. And I'm going to select OK. So this file is saved now. I can go ahead and preview it in Firefox. It's my page,. Again, much more user-friendly. I can read this text here. I can click on Employment and get that information. Scroll through it and then I can click on Travels. Yeah, not bad but overall I'm not particularly fond of the color and this will often be the case.

You will want to customize this widget more to and sort of your webpage's look and feel. So that's what I want to do next and in order to do that, all I really need to do is go into my CSS Styles because just like that earlier dialog box said, it said that it was adding this SpryAccordion.css. And this is a Style Sheet that I can also customize. So really, it's just a matter of selecting the items I want to change and then changing them. Say for instance, the AccordionPanelTab, if I want to change that background color from that medium gray, which I really can't read the text at all, I can always change that to, for instance, black.

The tab for the open panel, I can change that. Since it is the open panel, maybe I want to change it to the gold or that orange color and that's looking better as well. These focused colors as well is when the user selects this accordion panel, it's going to change colors, if I want it to. But for the most part, I want to keep this the same, so I want the color to be black for the sort of closed panel tabs and then for the open panel tabs, I want to change it to that gold or that orange color.

Both the focused and these default accordion panel tabs are changed. And that's all I'm really focusing on. I do want you to also check out the content area because if you noticed when I viewed this earlier, I had to scroll for some of that content. Well, I can change the height as well. So if I want this just to be a little taller, in fact, let's make it 300 pixels, just type in 300. You can see it expanded this panel down and will enable me to view all of this content without scrolling. All right.

So, I have modified the SpryAccordion.css and I'll go to File and I'm going to go ahead and preview this in a browser and it's going to ask me, do I want to save the CSS that I just modified and I want to say Yes of course, because I just spent time working on it. Sure enough, this does match my webpage a lot better. I have this sort of orange color. Still there is that gray highlight which looks good. Employment, I can click on that. Change its colors as well. Travels and you can see that all my content fits in here a lot better than the previous size.

Again, I was able to quickly add this functionality and group this information together and it allows the user to select the content that they want to read without sort of throwing all of this text at them at once and as you have noticed it was really easy to implement using Dreamweaver and the Spry Accordion.

Show transcript

This video is part of

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

32 video lessons · 51525 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 CS4.

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.