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

CSS and page properties

From: Dreamweaver CS3 Essential Training

Video: CSS and page properties

In this movie we're going to get a basic introduction to Cascading Style Sheets in {italic}Dreamweaver{plain} {italic}CS3{plain} by examining how {italic}Dreamweaver{plain} sets page properties. Now, in the old days -- we're talking a couple versions of {italic}Dreamweaver{plain} ago -- when you set things like a page's default text color or background color, {italic}Dreamweaver{plain} would write attributes the page's body tag, which you can do it still do if you want, but you just can't format your pages that way through {italic}Dreamweaver's {plain}Page Property settings anymore. You'd actually have to go into the code and manually enter the information that way. Because nowadays, the proper way is to set the page's text, link, and background colors, and so on, by using CSS.

CSS and page properties

In this movie we're going to get a basic introduction to Cascading Style Sheets in {italic}Dreamweaver{plain} {italic}CS3{plain} by examining how {italic}Dreamweaver{plain} sets page properties. Now, in the old days -- we're talking a couple versions of {italic}Dreamweaver{plain} ago -- when you set things like a page's default text color or background color, {italic}Dreamweaver{plain} would write attributes the page's body tag, which you can do it still do if you want, but you just can't format your pages that way through {italic}Dreamweaver's {plain}Page Property settings anymore. You'd actually have to go into the code and manually enter the information that way. Because nowadays, the proper way is to set the page's text, link, and background colors, and so on, by using CSS.

So, when you set up page properties, {italic}Dreamweaver{plain} automatically writes an internal style sheet for you. Now, an internal style sheet, also referred to as an embedded style sheet, is different from the example we looked at in the previous movie where I showed you the styles.css files sitting on my desktop, which could be applied to as many pages of I needed. That was an external style sheet. An internal style sheet is when you have the style information actually written into the pages code itself, and those styles therefore only apply to that particular page. As a rule, it's better to use external style sheets when you want to format multiple pages at once. But, if you're just setting up a single page, or you're not concerned about applying to same styles to multiple pages, the internal style sheet is fine. You also have the option of taking an internal style sheet and taking it into an external style sheet that you can then apply to more pages.

But we'll talk about how to do that in the next movie. For now, let's just get acquainted with {italic}Dreamweaver's {plain} Page Properties and see how it writes internal style sheets. The first thing I need to do is define a new site, since I'm working in a new chapter here. I've copied the 06_css folder to my desktop, and again, it just contains a version of the teacloud site we've been working with up to this point. Let's go back to {italic}Dreamweaver.{plain} I'll choose Site > New Site. I'll call this the teacloud 06. Browse for it, and there it is on my desktop.

And again, on the Mac I just need to select it and then click Choose. If you're on Windows, you'll have to double click to open it and then click Select. And then we'll click on OK. And here's our site. I'm going to open up the file abouttea.html. Now, this is a page in which the content has been added, but no real formatting has been performed here. We just have the plain default text appearance. We have some links over here on the right and at the bottom. These two lines of text, About Tea and the Legendary Origins of Tea, have some paragraph headings applied to them, but really there's not much more formatting than that. If I click in this paragraph you can see it's been formatted to a Heading 1.

If I click in this paragraph, you can see it's been formatted to a Heading 2. Heading formats are just a way of selecting text and making it stand out a little bit more. Heading 1 generally makes text the largest, and as you move down the list here text gets smaller and smaller. But, it's still emphasized by usually becoming bolder. We'll in a bit how we can change the appearance of these heading tags using Cascading Style Sheets. So, let's see what we can do with {italic}Dreamweaver's{plain} Page Properties to change the default appearance of this page. To open up Page Properties we can either come down here to the Properties Inspector and click Page Properties. You can also go to Modify menu and choose Page Properties, of hit Command or Ctrl J on your keyboard. Now, before we start poking around in the various page property options, we need to understand exactly what we're about to do here.

To the casual eye looking at some of the options here, it looks that we're going to do nothing more than set some very basic formatting options, such as the background color, the text color, a background image, and so on. But in fact, what we're doing is much more. By setting the page properties in this dialog box, we're asking to create an embedded style sheet, and apply those styles to the various elements on our page. Remember, an embedded style sheet sets options for the entire page. For example, if you choose a font in this window, such as the Verdana, Ariel, Helvetica set here, that font list will become the default font list for all the text on the page.

Any changes I make here are going to apply to the entire page. Let's come in here to the Size field, and I'm just going to type 11, and it will be 11 pixels for our size, which is a nice size for default text on a page. Let's set a color. To set the text color, we can either click the color well, sample from any of these colors swatches here. We can even sample right off the page if we wanted to. In this case, in my process of designing my page I've actually come up with that hexadecimal values for the color. So, I'm going type #474F49.

If I press tab to tab away from, you'll see the color that's been selected. Now, {italic}Dreamweaver{plain} will let you get away without typing # sign in front of your colors, but you should always have that # sign there. If you don't, you can run into trouble with certain browsers. So, definitely have that # sign before you type in a color. Let's add a background color. We'll type #, and the color we've determined we're going to use here is BEC2C2. Tab away from there. That's just sort of a light gray color. Down here in the margin area I'm going to enter a value of 0, 0, 0, and 0 for left, right, top, and bottom. By default, there's always a bit of a margin around the content on your page. If I want to see the changes that I've applied so far, I can click apply.

NOW, you're going to see a couple of things happen here because we've changed a couple things. First of all, the font is going to change to Verdana, the size will change to 11, text color will change. Background color will change, and you'll see the content of the page move up flush with the top of the window border. And there it is. So, you can see now the content will be flush to the top. If you don't mind having a border there, you can leave the margin fields here blank. Alright, let's make a couple more changes before we leave this Page Properties dialog box. Let's go over to links, and here we can control how the links on our web page are going to appear.

We have the option of changing link color: visited links, rollover links, and active links. By default, links on pages are usually blue and underlined. You've probably seen that plenty of times. When you click on those default color link, and then go to the page it links to, and then click the back button on your browser, often times those links have become purple to indicate that you've visited those locations. So, that would be the visited link color. When you actually click down on the link, you'll often see the link color will change. That's the active link color, and because we're creating CSS rules here, we actually can create rollover links. If we want the text to change to a different color, when we roll our mouse over it we can set a color here.

I've already determined some colors that I'm going to use here. So, let's set a link color of C89D5A. Go to visited links next. You can see that's sort of a tan color there. For visited links we'll use a slightly lighter version of the color. Oops, I forgot the # sign. Very important. Let's keep that in there. For the visited link colors we'll type #CFA970. It's a lighter version of the link color. Let's go over to rollover links. This will be 9F7535, and for the active links will type in 474F49.

So there are my Link, Visited, Rollover, and Active colors there. Another menu we have here, which includes options that are only available through Cascading Style Sheets, is the underline style. The underline style is to control what happens to the line that appears under links by default. By default links are usually underlined. But, you can choose to have them always underlined, which is the default, never underlined to take those away. You can them only show the underline when you roll over them, which is sort of a visual indicator that it's a link. Or you can choose to hide the underline on the rollover. In this case we'll choose Hide under line on rollover, and we'll see how that works in just a moment. Let's make one more change here. Let's go to Headings.

And, you can see in this category that we can set the appearance of all the different levels of Headings that we have available, Headings 1 through 6. I'm going to set the default font for all the Headings. So, in this case maybe I want the Heading fonts to be different from the body text fonts. So, I'll come in here, and let's choose the Georgia, Times New Roman set, which is a serif font, which usually looks better for larger type. Let's make a couple other changes. For the About Tea:History here, I still want this to be a little bit larger, so let's type in 20 pixels for that, and we'll pick a color. And color will be 68887C.

And, for our level 2 Heading let's keep this 11 pixels, which is the same size of the text, but it will still to be bolder because it's a heading. We'll also change its color to 949D87. So, those are the colors. And again, a bad habit of mine, we're going to make sure we have the # sign in there. Okay, so we've made a couple changes here since we last applied our changes. We changed the appearance of the links, and we changed the appearance of the Headings. Let's see what happens when I click OK. And sure enough, our Headings have taken on the appearance that we specified, and our links have taken on the appearance that we specified.

{italic}Dreamweaver{plain} does a pretty good job of letting you preview your changes, but there are some things that it can't show you, such as the rollover effects that we've created. I'm going to save my page, and we're going to preview this in our browser. So now, I can test my links by rolling over them, and you can see that there's the rollover color that occurs, and also you can see that the underline disappears when I rollover the links. So those are working. Now, even though you might not have been aware of it, {italic}Dreamweaver{plain} has been building an embedded style sheet this whole time as we are setting our page properties.

If I switch over to the code view, and scroll up towards the top, I'll find the style tag here, which leads into all the styles we just created. And you can see, here are all the selectors and rules that {italic}Dreamweaver{plain} has written for us. So again, this is referred to as an internal or embedded style sheet, because these styles are written directly onto this page's code, and cannot be applied to other pages in their current state. So, we've now created a CSS styled page without even going to the CSS panel up here, which is where we normally do the majority of our CSS work. As I mentioned earlier, the problem with using Page Properties is that it forces you to create an embedded style sheet, which prevents you applying the styles you created here to another page. But the good news is it's super easy to turn an embedded style sheet into an external style sheet. So, if after you've spent all this time setting up styles you decide you like the styles enough that they'd like to apply them to other pages, you can do so without having to re-create the page properties of every page.

I'm going to go in and show you to do this in the very next movie.

Show transcript

This video is part of

Image for Dreamweaver CS3 Essential Training
Dreamweaver CS3 Essential Training

129 video lessons · 86931 viewers

Garrick Chow
Author

 
Expand all | Collapse all
  1. 1m 12s
    1. Welcome
      1m 12s
  2. 21m 0s
    1. HTML vs. XHTML
      3m 4s
    2. What is CSS?
      3m 48s
    3. What is XML?
      2m 11s
    4. What is DHTML?
      1m 9s
    5. What is JavaScript?
      1m 23s
    6. File naming conventions
      3m 22s
    7. What is an index page?
      6m 3s
  3. 46m 18s
    1. Setting up your workspace
      2m 39s
    2. The Welcome screen
      4m 11s
    3. Windows and Mac differences
      3m 18s
    4. The Insert bar
      4m 38s
    5. The Property Inspector
      1m 50s
    6. The Document toolbar
      6m 6s
    7. The Document window
      9m 11s
    8. Panels and panel groups
      6m 58s
    9. Saving workspace layouts
      2m 22s
    10. Defining a default browser
      5m 5s
  4. 24m 59s
    1. Defining a site
      9m 5s
    2. File and folder management
      3m 11s
    3. Understanding path structure
      3m 17s
    4. Adding content to a site
      6m 6s
    5. Creating a site map
      3m 20s
  5. 38m 39s
    1. Creating a new blank site
      6m 0s
    2. Creating and saving a new document
      7m 54s
    3. About DOCTYPE
      3m 59s
    4. Inserting images
      9m 26s
    5. Inserting text
      3m 35s
    6. Aligning text and images
      4m 9s
    7. Inserting meta tags
      3m 36s
  6. 45m 58s
    1. Link basics
      6m 4s
    2. Linking with Point to File
      5m 18s
    3. External links
      4m 15s
    4. Creating email links
      5m 49s
    5. Named anchors
      7m 37s
    6. Linking to a file
      7m 35s
    7. Image maps
      9m 20s
  7. 1h 8m
    1. About CSS
      4m 52s
    2. Anatomy of a style sheet
      4m 10s
    3. CSS and page properties
      10m 11s
    4. Moving an internal style sheet to an external style sheet
      6m 46s
    5. The CSS Styles panel
      3m 48s
    6. CSS selectors
      2m 37s
    7. Type selectors
      12m 13s
    8. ID selectors
      10m 21s
    9. Class selectors
      5m 42s
    10. Creating rollovers with pseudo-class selectors
      7m 22s
  8. 42m 54s
    1. CSS vs. the Font tag
      2m 42s
    2. Formatting text with the Property Inspector
      8m 41s
    3. What measurement should I use?
      3m 15s
    4. Managing white space with margins, padding, and line height
      8m 34s
    5. Using font lists
      5m 45s
    6. Aligning text
      2m 47s
    7. Creating lists
      5m 8s
    8. Creating Flash text
      6m 2s
  9. 43m 19s
    1. About tables
      1m 28s
    2. Tables in Code view
      2m 36s
    3. Creating and adding content to tables
      7m 40s
    4. Changing table borders with XHTML
      5m 46s
    5. Coloring tables with XHTML and CSS
      6m 41s
    6. Aligning table content
      6m 39s
    7. Sorting tables
      3m 6s
    8. Setting table widths
      4m 48s
    9. Creating rounded-corner tables
      4m 35s
  10. 28m 22s
    1. Dreamweaver's layout tools
      3m 8s
    2. Tracing images
      4m 58s
    3. Adding AP div tags
      7m 29s
    4. Working with Layout Tables
      6m 55s
    5. Adjusting table widths and nesting tables
      5m 52s
  11. 16m 19s
    1. What is a device?
      3m 14s
    2. Attaching a printer-friendly style sheet
      3m 5s
    3. Styling for print
      7m 41s
    4. Adobe Device Central
      2m 19s
  12. 29m 54s
    1. Rollover rules
      3m 31s
    2. Creating simple rollovers
      5m 36s
    3. Creating disjointed rollovers
      7m 12s
    4. Creating navigation bars with multiple states
      9m 21s
    5. Creating Flash buttons
      4m 14s
  13. 26m 32s
    1. Viewing the code
      6m 9s
    2. Editing in Code view
      3m 0s
    3. The Code toolbar
      5m 11s
    4. Working with Code Collapse
      4m 27s
    5. The Quick Tag Editor
      2m 20s
    6. Working with snippets
      5m 25s
  14. 32m 45s
    1. About forms
      3m 23s
    2. Adding text fields
      9m 52s
    3. Adding checkboxes and radio buttons
      5m 37s
    4. Adding lists and menus
      6m 5s
    5. Submitting form results
      3m 23s
    6. Styling form elements with CSS
      4m 25s
  15. 23m 17s
    1. Opening a new browser window
      9m 38s
    2. Creating a popup message
      2m 50s
    3. Validating text fields
      2m 42s
    4. Getting more behaviors
      7m 2s
    5. Removing extensions
      1m 5s
  16. 14m 58s
    1. External image editor preferences
      3m 18s
    2. Built-in image editing tools
      3m 11s
    3. Roundtrip editing from Dreamweaver to Fireworks or Photoshop
      4m 39s
    4. Copying and pasting
      3m 50s
  17. 34m 16s
    1. Templates in action
      5m 12s
    2. Creating a new template
      6m 36s
    3. Applying templates
      3m 36s
    4. Modifying a template
      1m 40s
    5. Adding repeating regions
      3m 28s
    6. Working with repeating regions
      3m 13s
    7. Adding optional regions
      3m 34s
    8. Creating a library item
      3m 48s
    9. Modifying a library item
      3m 9s
  18. 13m 2s
    1. Using the History panel
      4m 24s
    2. Saving History steps as commands
      3m 25s
    3. Using Find and Replace
      5m 13s
  19. 14m 44s
    1. W3C accessibility guidelines
      4m 6s
    2. Accessibility preferences
      1m 29s
    3. Inserting accessible images
      3m 2s
    4. Inserting accessible tables
      2m 53s
    5. Inserting accessible form objects
      3m 14s
  20. 26m 17s
    1. About media objects
      2m 6s
    2. Linking to audio and video files
      5m 56s
    3. Embedding audio and video files
      7m 7s
    4. Setting parameters
      4m 27s
    5. Inserting Flash content
      2m 37s
    6. Inserting Flash video
      4m 4s
  21. 28m 47s
    1. Getting site reports
      3m 35s
    2. Checking links sitewide
      3m 30s
    3. Signing up with Tripod
      6m 36s
    4. Entering remote info
      4m 13s
    5. Publishing your site
      5m 41s
    6. Updating and publishing pages
      5m 12s
  22. 44s
    1. Goodbye
      44s

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 Dreamweaver CS3 Essential Training.

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.