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

Adding background colors and images

From: Drupal Gardens Essential Training

Video: Adding background colors and images

Now, we come to the most impactful video of the entire course: the one that lets you change background colors and images. I don't have to tell you what a difference it will make because you'll see; it will be absolutely obvious once we start. So, let's get to it. As usual, you launch the Theme Builder by clicking Appearance. Once there, you click Styles and Background. Now you'll notice that it shows the Background color is being black, but that's just because nothing is actually selected. So the first thing we do is we're going to select the entire page background.

Adding background colors and images

Now, we come to the most impactful video of the entire course: the one that lets you change background colors and images. I don't have to tell you what a difference it will make because you'll see; it will be absolutely obvious once we start. So, let's get to it. As usual, you launch the Theme Builder by clicking Appearance. Once there, you click Styles and Background. Now you'll notice that it shows the Background color is being black, but that's just because nothing is actually selected. So the first thing we do is we're going to select the entire page background.

Just click anywhere in the background and then take a look at the selectors down here. And we see, yes, that's the entire page. If you hadn't turned on Power theming or Show CSS, it would have said, You are styling: The page, but I prefer to leave those on. We talked about the information in this bar in the video about refining selections in the Theme Builder. Let's go through a few different colors and see what it looks like. Right now, it shows no color. That's the little checkerboard pattern. It's sort of subtle, but if you look closely, you can see it.

But we could change it let's say to brown, or green, or a light gray. The colors that you see here are the ones that came with this Kenwood color scheme that we selected in a previous video. You can also have a custom color if you like by just clicking this little Plus sign and moving around as you would in any other kind of color selector. Let's just say Add. Let's have a dark blue background. Ugh, that's terrible. Okay, we'll get rid of that and switch back to a light gray. One thing you might notice is that no matter what color we choose, it lowers the contrast throughout the page.

The text isn't quite as easy to read when we have that color selected. Let's go back and select the area--make it like a green. Now you can't read anything at all. Even a gray makes it a little bit harder to read. So, I'm going to just go back to what we had before. One way of doing that is just clicking off, say over to this Close Theme Builder button, and we're back to white. Now let's move to putting in a graphic. Remember, as with any web graphic, you'll have to create and adjust it in an image-editing program.

lynda.com has lots of videos that'll help you with this, one of them being "Photoshop for the Web." One popular kind of image to use as a background is a gradient, and so that's what I'm going to do. I have one right here. I'll just click Browse and then go into my exercise files and open page_background.jpg. As we scroll down this page, we see it gets lighter as we go. We also have it repeating. If we turn off the repeat so that it doesn't go left to right or right to left, we see the actual graphic itself is a very thin little thing over here.

But the default repeat is for it to repeat in both directions, up and down and right to left. The problem with that though is if the page is long, as is true in our case, it then starts again right here. So instead, I'm going to have it only repeat horizontally. There, now it goes all the way from this dark blue down to white, and then since the rest of the page is white, it just blends in naturally. Now that we've done that, I'm just going to publish it. Then I'm going to close out the Theme Builder, just so I can take a clear look at exactly what I have. Yup! Looks pretty good.

There is one thing that I don't like though, which is although it's nice to have this dark color up here, when we get in here we can't read any of the text. That's okay though. We can change all of this area in here, so it's white, and we just have the background around the edges. To do that of course, we go back into our Theme Builder, click Styles, and once again Background. Now I have to find the area that I want to change that I want to not have that background. So, I would start clicking around here. Well, that's just the header area, and again you see it here in the CSS selector.

That's the main. Ah, but when I click main, I see it gets bigger and bigger. I'm going to try just this content area, and get rid of everything else. Then if I scroll around, I can see the boundaries of what that content area actually is. It's that solid blue border. Now, I've worked with these themes, and I happen to know that that's what I want, so that's what I'm going to do; I'm going to change that Background to be white over here. Say OK and once again I'll publish it.

We're well on our way. And here is a little something that's really impactful: what I just showed you not only works for the pages background, and not only for large area backgrounds, but for any background. In fact, I'm going to put a graphic in at the top of the page. To do that, I select the area once again. And I happen to know that this one is going to be the header area, so that's the one I'll use. I'll go back in and browse as I did before, and choose this main_back-top graphic, and select Open.

That looks pretty good. But in this case, the graphic isn't quite wide enough. Ideally, we would go back and fix the graphic, but let's say you don't have that option. You can also fix the spacing of that graphic, and I'll show you how to do that in the video about changing element spacing and borders. There is one last thing I want to mention about putting in colors or backgrounds, which is you have to be careful when you apply it to something that has a rollover, because the thing is you might change the background for one state of the rollover but not for another state.

In that case, you have to start messing around with all of those pseudo-classes that I talked about before, and make sure that you have matching colors or matching graphics for both when you roll over and when you leave. The last thing I'll do of course is to publish this. And so that we can see what it looks like, I'll close out the Theme Builder. Boy, that made a big change, didn't it? Background graphics are great, but as you can see, they require a little bit of attention. You have to either edit them beforehand, so they fit your page, or change the spacing of your page afterward so it fits the graphic.

We're actually going to do the latter in that video I mentioned about changing element spacing and borders, although that's backward from the way that traditional web design works. Usually, it's easier to edit the image than play with CSS, but with Drupal Gardens' Theme Builder CSS is so easily handled and so fluidly handled, I find that you can do either one just as easily.

Show transcript

This video is part of

Image for Drupal Gardens Essential Training
Drupal Gardens Essential Training

65 video lessons · 11833 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
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 Drupal Gardens 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.