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

Applying color to type

From: Typography with CSS in Dreamweaver

Video: Applying color to type

Dreamweaver makes it dirt simple to change the color of any text via CSS. You can choose from the basic palette of the color picker or extended system colors, or enter a color value directly, or my favorite, sample from any design element on your screen. So I have here open the index.htm file found in the Chapter 4 > 04_02 folder. A common application of color is bringing a design or comp to the Web accurately. Let's walk through an example with the tag found on this page in this area here.

Applying color to type

Dreamweaver makes it dirt simple to change the color of any text via CSS. You can choose from the basic palette of the color picker or extended system colors, or enter a color value directly, or my favorite, sample from any design element on your screen. So I have here open the index.htm file found in the Chapter 4 > 04_02 folder. A common application of color is bringing a design or comp to the Web accurately. Let's walk through an example with the tag found on this page in this area here.

So I'm going to put my cursor in the < em> tag and then create a new rule and let's limit it to just the tag and keep it stored in main.css. I'll click OK. So now I'm ready to enter in my color value, but I don't have it on the screen; I have it in a comp. So I'm going to switch over to my graphics program, Fireworks, where I have my comp design and if I go in and select some of this purple text here, down in the Property Inspector, I'll see that color up here, and if I expand the Color Picker, I can see the hex value, which I can then click into and copy, using a Command+C or Ctrl+C on the PC, of course.

I'll push Escape to get out of that, and now let's go back to Dreamweaver and I'm ready to enter in that value directly into the color field. So I'll do a Command+V to paste it in, press Tab and there's my same color. Click OK, and the color is immediately applied. Another approach is to use Dreamweaver's built-in color sampling ability to pull a color directly from your site. Let's use that technique to create the colors for the various link states. So I'm going to create a new rule and it is a Compound Rule, but it's for the a:link and a:visited states.

I'll click OK and I'm going to sample kind of the gold area that's found between Services and Portfolio right here. Now this is a gradation so we're not going to get something exactly right, but I want this type of feel for it. So I'll go ahead and open up the Color Picker and now that I have my eye dropper, I can go onto the page and just choose a color value. If I want to move around a little bit, I can see that there's a slight variation, but it's largely the same color. So I'll click on one of those and then click on OK.

Now for this, I'm going to drop out of Live View and go into Design view just because I like this kind of bright yellow that we see here. So I'm going to create the Hover Rule, also the active state, and this time, I'll move down and the color I'll sample right from there, and I can see it is actually a bright yellow. Now I could have chosen that right from the Color Picker, but sometimes you see something on your screen, and I'll just say, oh, that's exactly right, that's exactly what I want, and you can go and grab it. So I'll click OK.

Now let's say that the client comes back, and I'll go into Live View here, and scroll down to where the links are, so you can see them in action, and as I hover over them, I get that bright yellow appearance. Now let's say that the client comes back and says the yellow hover is too bright and they want something a little more subtle. You can use the system color tools to achieve that goal. I'm going to go and click on one of the links so that I can get the hover state showing up in my CSS STYLES panel, and then select that, and now I'll select the color swatch to bring up the Color Picker, and I'll open up the system Color Picker.

Now, of course, the system Color Picker is different for Macs than it is for PCs, but let me demonstrate one technique on the Mac, and then I'll describe it for you on the PC. So I'm going to go to the color sliders here and then from the dropdown list, choose HSB sliders and we'll set the Saturation about half way, around 50%, and I'll click OK and then Escape to drop that down. Now you can see what that did was it made it a little bit less and as I go over it, it's not quite as bright.

Now on Windows, the system Color Picker is calibrated with a hue saturation luminance scale, rather than the HSB scale, and to achieve the same effect, you would change the luminance value to 180. You can do this manually or by dragging this slider up towards the white about half way. Adding color to your text can help bring a page to life and coherence to a design. Dreamweaver's Color tools make it simple.

Show transcript

This video is part of

Image for Typography with CSS in Dreamweaver
Typography with CSS in Dreamweaver

36 video lessons · 8054 viewers

Joseph Lowery
Author

 
Expand all | Collapse all
  1. 3m 52s
    1. Welcome
      1m 19s
    2. Using the exercise files
      2m 33s
  2. 19m 16s
    1. Working with the Property inspector's HTML tab
      2m 0s
    2. Making the most of the Property inspector's CSS tab
      4m 57s
    3. Defining and changing type with the CSS Rule Definition dialog
      6m 16s
    4. Modifying type directly in the CSS Styles panel
      6m 3s
  3. 19m 45s
    1. Understanding type measurement unit options
      2m 50s
    2. Working with pixels
      2m 34s
    3. Defining a percentage-based page with ems
      6m 51s
    4. Letting users set page type size
      7m 30s
  4. 17m 36s
    1. Getting to know the basic font categories
      1m 32s
    2. Employing web-safe fonts
      3m 20s
    3. Defining new font families
      3m 22s
    4. Exploring CSS3 typeface options
      3m 9s
    5. Setting up @font-face
      6m 13s
  5. 9m 39s
    1. Dispelling the myth of web-safe colors
      1m 13s
    2. Applying color to type
      4m 52s
    3. Incorporating semi-transparent type
      3m 34s
  6. 19m 46s
    1. Setting the font-weight
      3m 48s
    2. Mandating font case
      2m 25s
    3. Exploring font variants
      1m 50s
    4. Utilizing white space effectively
      3m 40s
    5. Changing letter and word spacing
      2m 20s
    6. Defining first-line variations
      2m 19s
    7. Inserting drop caps
      3m 24s
  7. 20m 17s
    1. Applying CSS3 text effects
      5m 26s
    2. Designing type gradients
      8m 27s
    3. Rotating text with CSS transform
      6m 24s
  8. 15m 21s
    1. Implementing advanced headings with HTML5
      3m 11s
    2. Preparing CSS3 multiple-column layout
      4m 50s
    3. Future type: Defining CSS Regions
      7m 20s
  9. 24m 51s
    1. Styling unordered lists
      6m 51s
    2. Specifying a sequence with ordered lists
      5m 14s
    3. Applying definition lists
      7m 19s
    4. Targeting list items with CSS3 nth child
      5m 27s
  10. 20s
    1. Next steps
      20s

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

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 Typography with CSS in Dreamweaver.

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
  • Mark video as unwatched
  • Mark ALL videos as unwatched
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:

  • new course releases
  • newsletter
  • general communications
  • special notices

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:

  • new course releases
  • newsletter
  • general communications
  • special notices

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.