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

Working with Code, Split, and Design views

From: Creating a CSS Style Guide: Hands-On Training

Video: Working with Code, Split, and Design views

When creating styles for web page or a site it is important to remember to be playful, to experiment and to make adjustments to your design that satisfies your design and site objectives. In order to experiment you need an understanding of how and where to edit your style. As you probably have guessed there are several ways that exist to change the embedded styles. The first way is simply to go back down to Page Properties in the Property Inspector, open up the dialog box and make the changes right there. But you can also go into the Code view. Remember, I have told you over and over don't be afraid to go into Code. So let's go into Split view and let's scroll to the top so we can see our styles and let's make some changes there and see if there is some things we would like to twiddle and make better. I'm not sure that Verdana is the right font for this website. So I select the word Verdana and I'd like to see Trebuchet. It's one of my favorite fonts. So I type the word Trebuchet in, go to the right panel and click on the button Refresh.

Working with Code, Split, and Design views

When creating styles for web page or a site it is important to remember to be playful, to experiment and to make adjustments to your design that satisfies your design and site objectives. In order to experiment you need an understanding of how and where to edit your style. As you probably have guessed there are several ways that exist to change the embedded styles. The first way is simply to go back down to Page Properties in the Property Inspector, open up the dialog box and make the changes right there. But you can also go into the Code view. Remember, I have told you over and over don't be afraid to go into Code. So let's go into Split view and let's scroll to the top so we can see our styles and let's make some changes there and see if there is some things we would like to twiddle and make better. I'm not sure that Verdana is the right font for this website. So I select the word Verdana and I'd like to see Trebuchet. It's one of my favorite fonts. So I type the word Trebuchet in, go to the right panel and click on the button Refresh.

Now I have an opportunity to look at that change, decide whether it's what I want or not. For me it looks like it's too lightweight. I like the forcefulness and the exactness of Verdana. So I'm going to select Trebuchet again and type in the word Verdana. Then click on the Refresh button. Yeah, that's the way I like it. I'm happy with that. So I experimented right there. There is a couple other things that I can try. Let's go back to Design view and as you can see we now have an active CSS Styles panel because we've added embedded styles into our head tag. I'm going to click on the top tag body, td, th. Remember td and th stand for table data, table header. And I see all the attributes and all of the values that I have created for those three tags. I'd like to change the font-size. Currently, I have picked 12 pixels and although that would be a good choice if I were working inside a Photoshop or I were doing print in InDesign. It is a fixed number. Using a fixed number is not necessarily the best way to go inside of a browser. Because if I have users who need to enlarge or reduce the text, this fixed number won't be able to be changed.

So I'm going to select this. You have two choices when you are creating fonts inside of a web page. You can use fixed measurements or you can use relational measurements. I'd like to show you a couple of my favorite relational measurements. The first one is just simply using percentages. Now I know you are not familiar with what percentages can do. So the place to start in using percentages is put 100% and see what that looks like. So I type in 100, select the second dropdown menu and choose percent. It's a little too large. So now I know that 100% is pretty big and 100% usually indicates 100% of the browser font, default font. I think it could be a little bit smaller so I'm going to select 100% again.

And this time I'm going to type ad and the % sign and click Tab. Yes, that's much, much better. That will stretch and the user can use the Command+plus and the Command+minus to make this larger and smaller. And it will stay in relation to the other fonts displayed on the page. The second relational font measurement system that I like is the em. And em is the measurement for the width of the letter M in the font that you are currently using. So let's try that one out. Again always start with the number 1 or 100%. So I'll put 1, click on my dropdown menu. There is em right there.

Remember it's the width of the em and again it's pretty large and it's very similar to what 100% looked like. So that's a good thing for you to know that the percentages and the ems are in the same ballpark in terms of size. So knowing what I know about 100%, I think I'll try 0.8 em. So I click here to 0.8, go ahead and type em, hit Tab. That looks great, I'm very happy with that. That meets web standards. It meets accessibility standards and the user inside the browser can enlarge and reduce the text. This is exactly what I want to use. There are slight differences between using em and the percent system. Both of them have good things and bad things about them but they are used a lot and they are a web standard and a best practice.

James Williamson and his Dreamweaver Essentials goes into much more detail about how to use them and when to use them. So there we have it. It's not that hard to make styles, it's not that hard to change styles. That's actually fun and part of the design process to experiment, be playful and try to make your page look as good as you can for that web browser experience.

Show transcript

This video is part of

Image for Creating a CSS Style Guide: Hands-On Training
Creating a CSS Style Guide: Hands-On Training

35 video lessons · 28246 viewers

Laurie Burruss
Author

 
Expand all | Collapse all
  1. 6m 58s
    1. Welcome
      1m 9s
    2. Objective of this course
      3m 38s
    3. Using the exercise files
      2m 11s
  2. 28m 26s
    1. Starting Dreamweaver for the first time
      3m 38s
    2. Defining a website
      4m 3s
    3. Understanding the Dreamweaver interface
      9m 43s
    4. Setting up a custom workspace
      4m 10s
    5. Setting essential preferences
      6m 52s
  3. 56m 54s
    1. Laying out a page in a text document
      3m 40s
    2. Creating and saving a new document
      3m 27s
    3. Inserting an image
      8m 22s
    4. Marking up text using the Property Inspector
      6m 48s
    5. Marking up text by hand
      9m 21s
    6. Inserting, formatting, and selecting a table
      8m 16s
    7. Creating links
      12m 26s
    8. Styling a footer
      4m 34s
  4. 22m 15s
    1. Using Modify Page Properties to create embedded styles
      12m 22s
    2. Creating links with CSS
      4m 55s
    3. Working with Code, Split, and Design views
      4m 58s
  5. 8m 52s
    1. Defining browsers to test a web page
      2m 24s
    2. Previewing a web page in a browser
      6m 28s
  6. 16m 44s
    1. Using a span tag to add a class and customize appearance
      10m 34s
    2. Using the Tag Inspector to create and edit additional styles
      6m 10s
  7. 48m 42s
    1. Exporting existing styles into an external style sheet
      7m 0s
    2. Using the CSS Styles panel to add a new style
      5m 43s
    3. Using the div tag to create a content container
      11m 8s
    4. Overriding the default browser styles
      2m 46s
    5. Applying padding and margins
      4m 57s
    6. Styling header tags
      5m 34s
    7. Creating and styling compound tags
      5m 12s
    8. Editing preexisting rules
      6m 22s
  8. 19m 36s
    1. Improving the Footer
      5m 12s
    2. Commenting a CSS style sheet
      7m 0s
    3. Creating a custom color palette
      7m 24s
  9. 3m 6s
    1. Style sheet final review
      3m 6s

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.

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 CSS Style Guide: Hands-On 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 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.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

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.