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

Adjusting typography

From: Drupal Gardens Essential Training

Video: Adjusting typography

Modern CSS handles just about every aspect of page display, but early versions focused more on typography than on such matters as positioning. If you know how to handle type on a print layout program, such as InDesign or even on a word processor such as Microsoft Word, then you will be right at home with Drupal Gardens' controls. As usual, the hard part is making sure that you have the right CSS selectors before you start making changes. The only thing I am going to do on this page is to make these menu items look a little bit more classical, maybe give them a serif font, maybe put them in caps.

Adjusting typography

Modern CSS handles just about every aspect of page display, but early versions focused more on typography than on such matters as positioning. If you know how to handle type on a print layout program, such as InDesign or even on a word processor such as Microsoft Word, then you will be right at home with Drupal Gardens' controls. As usual, the hard part is making sure that you have the right CSS selectors before you start making changes. The only thing I am going to do on this page is to make these menu items look a little bit more classical, maybe give them a serif font, maybe put them in caps.

But along the way, I will show you some of the other controls that you have for typography in Drupal Gardens. As usual, you bring up the Theme Builder by clicking Appearance, and then click Styles. We want to change the typography, so we will just leave it on Font. Then we go and find what exactly we want to change. Let's change these main menu items, as I said. Click there and then click Font, and you will notice that you actually have a large selection of fonts to choose from. I am going to take Georgia. I like its classic look. Once you have something selected, you will notice all of these things that you can change: underline obviously, italics, bold, any combination of those if you like.

You also can change the alignment. Now it's not always obvious when you change alignment, because it changes it within its own little bounding box. Like if I make this align right, it doesn't actually change anything. You might think it would go all the way over here, but the individual bounding box is right here. It's not the entire bar. So I will change that right back to the way it was. And as I described, you can change it so it's all caps. One thing to watch out for: when you change something to all caps, it does make it larger over all. So sometimes it's a good idea to bring down the font size just a little bit.

And I will publish that. Now, I didn't mention these two controls here which control leading and kerning. I will show how that works by going down to some body text here. Let's just actually select the main body text right here. And if I look at the selector, it's all field items that are in between p tags in the main area. Okay, so that would be anything that is right in the middle here. We are going to change it back, so it doesn't really matter. If we go and change the leading, you see that it actually changes the amount of vertical space between the lines that are within a paragraph.

The kerning changes horizontal space between the letters. Generally speaking, you want to be very subtle with this, because as you can tell, it gets really ugly really fast. One thing that people sometimes do is they will do a very subtle kerning inward if they want to fit more text onto the page. But for us we are not going to do either of those things, so I am just going to leave the Theme Builder, discard my changes, and we are back as we were. Once again, I will go back in just to show one or two other things.

I clicked Appearance to go into the Theme Builder, then Styles, and I am back at Font. Let's scroll down here and take a look in our right column. Let's say that we wanted to change just these titles in the left column. I will click there, and we see it's h2 in #sidebar-a. Now, we could say we want h2 that's only in a block in #sidebar-a by clicking there. Or we can make Drupal Gardens change all of the h2s throughout the page by removing the #sidebar-a. We learned about this in the video about selecting CSS, but just to review, let's take a look at what exactly that does.

Well, that would affect this, and it would affect this, basically throughout the entire page. This is a good way to give your page a very consistent look. Like let's change that to Georgia now. Because we expanded what exactly we are selecting, we now have that Georgia look throughout the entire page. And I think it looks pretty good, but actually I am just going to close out and leave as it was with our main menu changed and nothing else. Now, I want to mention two more things to watch out for when you change font styles: First, if you're using the background graphic, and you make the type larger, text might end up running past the end of the background graphic, and that could look really bad.

Second, be careful when you change font color, because it might disappear into a similarly colored background shade. That's especially tough to watch for when you change the style that shows up on multiple places on the page. As always, vigilance is the watchword, and it's a good idea to look at your site both as a visitor and in multiple browsers.

Show transcript

This video is part of

Image for Drupal Gardens Essential Training
Drupal Gardens Essential Training

65 video lessons · 11704 viewers

Tom Geller
Author

 
Expand all | Collapse all
  1. 29m 56s
    1. Welcome
      1m 39s
    2. Previewing the finished project
      1m 29s
    3. What's new in the late 2011 update?
      5m 28s
    4. What is Drupal?
      5m 8s
    5. What is Drupal Gardens?
      5m 57s
    6. Getting started with Drupal Gardens
      5m 35s
    7. Getting help
      4m 1s
    8. Using the exercise files
      39s
  2. 17m 40s
    1. Using the administrative overlay
      2m 54s
    2. Using the dashboard, toolbar, and shortcut bar
      5m 36s
    3. Touring the newly created site
      3m 55s
    4. Configuring the site
      5m 15s
  3. 59m 47s
    1. Creating and managing content
      11m 11s
    2. Creating and managing content types
      10m 35s
    3. Embedding YouTube videos and other media
      4m 5s
    4. Subscribing to RSS feeds
      4m 49s
    5. Categorizing RSS feeds
      5m 1s
    6. Managing tags and taxonomies
      5m 50s
    7. Creating dynamic pages with simple views
      4m 29s
    8. Creating complex information collections with Views
      8m 59s
    9. Creating image galleries
      4m 48s
  4. 37m 50s
    1. Working with blocks
      10m 26s
    2. Setting up rotating banners
      7m 45s
    3. Understanding menus
      7m 27s
    4. Setting up contact forms
      7m 7s
    5. Adding and removing functionality
      5m 5s
  5. 54m 54s
    1. Managing users
      6m 28s
    2. Adjusting user permissions
      6m 35s
    3. Managing comments
      7m 7s
    4. Slowing spam
      5m 20s
    5. Starting discussion forums
      9m 3s
    6. Creating blogs
      4m 41s
    7. Setting up mailing lists
      4m 50s
    8. Allowing users to rate content
      4m 21s
    9. Using best practices for online clubs
      6m 29s
  6. 44m 35s
    1. Getting feedback with webforms
      6m 14s
    2. Publishing RSS feeds
      6m 40s
    3. Taking advantage of social media
      9m 33s
    4. Emphasizing external links
      2m 44s
    5. Improving search engine optimization (SEO)
      7m 30s
    6. Internationalizing sites
      8m 6s
    7. Tracking site usage with Google Analytics
      3m 48s
  7. 34m 40s
    1. Understanding Drupal themes
      5m 44s
    2. Understanding the Theme Builder
      5m 25s
    3. Switching, saving, and copying themes
      7m 13s
    4. Introducing custom CSS
      6m 51s
    5. Refining selections in the Theme Builder
      5m 48s
    6. Exporting themes
      3m 39s
  8. 48m 31s
    1. Changing the site's color palette
      2m 32s
    2. Changing the site's main logo and favicon
      5m 22s
    3. Changing the column number and arrangement
      5m 7s
    4. Adding background colors and images
      6m 29s
    5. Changing element spacing and borders
      6m 11s
    6. Adjusting typography
      4m 24s
    7. Using fonts from outside sources
      5m 7s
    8. Inserting raw CSS code into themes
      6m 57s
    9. Adding visual effects with JavaScript libraries
      6m 22s
  9. 14m 18s
    1. Finessing theme design
      7m 51s
    2. Eight ideas for modifying themes
      6m 27s
  10. 23m 38s
    1. Monitoring sites
      4m 11s
    2. Duplicating and deleting sites
      4m 23s
    3. Adding custom domains
      3m 48s
    4. Using exported sites outside of Drupal Gardens
      3m 46s
    5. Hosting exported Drupal Gardens sites
      7m 30s
  11. 51s
    1. Goodbye
      51s

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.