New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

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 · 51481 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

Are you sure you want to delete this note?

No

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.