Applying CSS Classes

Questions

0

Course info

34 lessons / 3 hours

Overview

Dreamweaver (and web design in general) is such a hard program to teach yourself. We know, because as Dreamweaver trainers we have all taught ourselves. We wish we had a resource like this when we were learning.

Hand coding a website from scratch is now a thing of the past. Web designers use tools like Dreamweaver to a lot of the heavy lifting. We imagine this is your first website build and we're glad we're here to help make this process a little less troublesome. 

Who should use this?

Anyone that is brand new to Dreamweaver and anyone brand new to web design in general. If you're reasonably experienced in web design you might find this course a little slow going.

What do you need?

  • You'll need a laptop (Mac or PC)
  • Dreamweaver CC installed. Dreamweaver can be downloaded from theAdobe website here.

Can I use this tutorial with Adobe Dreamweaver CS4, CS5 or CS6?

No. Unfortunately there were some fundamental changes in the Dreamweaver CC update that makes CC and previous versions very different.

Remember you can download Dreamweaver CC free for 30 days. Don't worry - after your free trial has expired your files will still be updatable using any other web design program.

If you like the tutorials we'd love you to like, share and tweet it. We'd be very grateful.

Daniel Scott

Daniel Scott

Founder of Bring Your Own Laptop & Chief Instructor

instructor

I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.

Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.
True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.

Downloads & Exercise files

Transcript

Hi, and welcome to this Dream River tutorial. My name is Daniel Walter Scott,  and I'm a trainer here at Bring Your Own Laptop. In this tutorial, we're just gonna look at refining our  skills at creating a class. 'cause they're quite important. We use classes quite a bit. Um, so let's create our second class.

Now we're gonna do it to one of the words in here. Um, we are going to pick our word legendary, okay? And we are going to make it a different size. Actually, we'll change a different color  and we'll make it italics. Let's say that it's the brand name. So let's pick a brand name.

Actually, let's go for combi. Okay, VW Combi. I want to make italic and change the color of it. So to do it, what I need to do is just like we did  before, I don't have to highlight it first, it's up to you. Um, but I can click main CSS, that's  where I'm gonna put this class. I'm going to create a new selector that I get to name,  remember I can call anything I like.

So I'm gonna call it, um, the main, the main thing  to make sure it's a class is it has  to have full stop in the front of it. Then once you put that, I'm gonna have this as, um,  this is gonna be my CNAME for my company name. You get to name it anything you like. No spaces, no special characters. And down here I'm in the properties panel. I'm gonna choose text and I'm gonna go through  and decide it's going to be a different color.

Okay? I'm gonna make this one green  and I'm gonna pay with a font style  and I'm gonna make it italic. Alright? Nothing happens over here until I apply it. So it's got the paragraph tag already  applied or already applied. This one, I'm gonna apply my class  and you can see here C name.

Let's have a look at in code view. So you can look at it in CSS. So this is my, um, class set I created called C name. And it's got a color of green and a font style of italic. But you can also look in source code. This is my HTM l this is the H TM L part of it.

So this is the CS S part. This is the html. This is my index HTML page. You'll see if I zoom in in here. Um, actually I won't zoom in. I've got, um, where is he?

So there's my paragraph starts. So my paragraph starts there and closes there. That gives me my paragraph. Now within this paragraph, I highlighted the word combi  and it's wrapped this thing called a span tag around. And in this, okay, the span tag, it's called a span class. And there's my little C name.

So this is how it goes off my H tm L now goes off looking  for a class called C name M my CSS,  and then applies these features to it. So that's how a class works. Alright, that's it for this tutorial. Um, I'll see you in the next one.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2025