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

Customizing specific page content

From: Creating a First Web Site with Dreamweaver CS4

Video: Customizing specific page content

Cascading Style Sheets allow you to go beyond styling HTML elements such as the paragraph tag for instance. And it allows you to create your own custom elements to be applied to anything you want. So for instance, if I wanted say Copyright 2009 Jane Doe Photography, something like this, text that is really going to be at the base of the page. I'm going to go ahead and sort of move it down, but in general I can not only insert a special character for this particular scenario, by going to Insert > HTML > Special Characters and inserting the Copyright.

Customizing specific page content

Cascading Style Sheets allow you to go beyond styling HTML elements such as the paragraph tag for instance. And it allows you to create your own custom elements to be applied to anything you want. So for instance, if I wanted say Copyright 2009 Jane Doe Photography, something like this, text that is really going to be at the base of the page. I'm going to go ahead and sort of move it down, but in general I can not only insert a special character for this particular scenario, by going to Insert > HTML > Special Characters and inserting the Copyright.

But once I have this text established, I can go ahead and apply a specific style to it, because I don't want this text to have the same visual priority as the paragraph text. I want to maybe decrease the size of the font. Your first inclination is to select that text and go to the Properties panel and maybe change it down here. And let's watch and see what happens if I try to do that. If I change the size to 9 to kind of give it that lower priority. I'm then presented with this New CSS Rule dialog box.

So this is great because Dreamweaver shows me and helps me with best practices for creating an HTML page. It already says, hey, what type of selector do you want to use? So what this means is it gives me the opportunity to select the type of CSS. So I don't want it to be like, say for instance, the paragraph tag, I don't want to select that because it's going to change that font for everywhere where I use the paragraph tag. My other options are the ID, which is only going to apply to one element, and then I even have Compound, which is going to be based on my selection.

What I want to choose and what really seems to give me the most flexibility is this class, because it can be applied to any HTML element. But if you are really curious about say the ID and Compound and advanced CSS, check out the title by James Williamson. His lynda.com title is Dreamweaver CS4 with CSS Essential Training. Check that out because it's going to be more robust than what I'm going do here, but in general I can select class because again it's going to give me a lot of flexibility.

In fact, my next step is typing in footer. So this is the name of the selector. So it's going to be applied to all HTML elements with the class footer. So I just have to remember this name, and I'll select OK. Look what it does, automatically it changes the font size and it applies that footer to that text. As you will notice in my CSS Styles panel right down here, you will see footer. I can double-click on it and I can change it further if I want to.

Such as changing the color, again I want to give it sort of a lower priority, so I might change it to a medium gray, and I'll select OK. And it changes it to that medium gray. So again, this could be applied to any HTML element. So if I have an additional text and for this additional text if I want to apply that class to it, I can do that. Again, down here in my Properties panel, my Targeted Rule, I want to apply a class.

In this case, it's called footer. I select that and it changes it to that smaller sort of gray type. I can go ahead and move that down to the base of the page if I want to as well. But again, I'm given really total control to define my own CSS style to be applied to any element. Again, CSS gives me the power to do this and Dreamweaver really teaches me best practices for applying this to my web page as well.

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 · 51574 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 preferences from 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.