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

Styling unordered lists

From: Typography with CSS in Dreamweaver

Video: Styling unordered lists

Lists are a particular type of text with their own tags, CSS properties and structure. In this video, we're going to take a look at the styling of unordered, or as they're more commonly known, bulleted lists. I have opened the resources.htm file from the Chapter 8 > 08_01 folder. Let's scroll down to where I have some sentences lined up ready to be converted into lists. Now each of these is in their own paragraph tag and quite often when you're bringing something in from another source, your list will start off as paragraph tags like this.

Styling unordered lists

Lists are a particular type of text with their own tags, CSS properties and structure. In this video, we're going to take a look at the styling of unordered, or as they're more commonly known, bulleted lists. I have opened the resources.htm file from the Chapter 8 > 08_01 folder. Let's scroll down to where I have some sentences lined up ready to be converted into lists. Now each of these is in their own paragraph tag and quite often when you're bringing something in from another source, your list will start off as paragraph tags like this.

So we can easily convert them into lists in Dreamweaver. I'm just going to go ahead and open up my Property Inspector, make sure I'm on the HTML tab, and begin selecting the paragraphs here. I'm going to scroll down as we get down to the bottom. There we are. So we've grabbed all of those paragraphs, and with one click here, I can turn them all into bulleted list items. Dreamweaver moves the scroll a little bit, but we can scroll back up and there you can see all of the various bullets and they're un-styled.

So they're going to be kind of raw and we're going to have to create some CSS rules in order to bring them into the design for the rest of the page. Now this is not just one long list on the same level. There actually is another list embedded in here, and you can nest unordered lists, put one inside another very, very easily. So you see here, this list item, Is your trip an outdoor adventure? If so we recommend the following, and then the following items from comfortable hiking shoes on down to Sunscreen, are all members of this sub-list.

Now to make it a sub-list, there are two things you can do; you can go down to Indent here on the Property Inspector, and click that, or you can actually just press Tab and that will have the same effect. But let's go ahead and click Indent here. Notice that while the symbol changes, it's not actually indenting. A quick look at the CSS STYLES panel over here, which is in Current mode, tells the tale. There is a type of Reset Rule that removes all paddings and margins for ul and li elements. We'll add that in first thing.

So we're going to need to create some new rules, and we'll start by putting our cursor within the nested ul. As you can see here in the Tag Selector, there is one ul tag inside of another. So with that selected, I'll go over to the CSS STYLES panel, and click New CSS Rule. Let me make this a little less specific, and then I'll click OK. So we'll go to the Box category because I'm going to be adding in a margin here, and deselect the Same for all under Margin.

So the rest of this page is handled in ems, so I'm going to be consistent and use ems here. For my Top Margin, I'm going to make 1.4 ems. Right will be 0. The Bottom I want a little bit of space, so I'm going to do 1 em, and then the Left will also be 0. I'm going to click OK, and that will give us a little bit of room there. Now, let's move on to the list item. So I'll move my cursor up into the Main list item there, and again click New CSS Rule.

Make this a little less specific. So we're targeting the list item that's found in the top-level ul. Click OK and before we go to the Box category, let's set the Font Size here. I'm going to make it 1 em, so that it's the same as the paragraph font and put in the same color which I've picked up from my comp and I know that it's #51341a. That's kind of a dark brown.

Now let's move to the Box category where we'll set Padding to 0, and let's deselect the Same for all under Margin and set the Top to 0, the Right to 0, the Bottom to 1.2 ems, and the Left to 1 em. Now, it's beginning to take a little bit of shape. If I scroll up a bit, I can see that my list items are now the same size, but I've made them a bit more distinctive by giving them a darker brown color.

Now the next thing we want to do and that's possible with list items is changing the bullet style. In this case, what we're going to do is add-in a graphic image, so that we'll have a small star, much like the navigation Has a star next to it. So we're mirroring some design choices that we have elsewhere in the page. I'll put my cursor back in the list item, and let me move this over just a bit, so I can see what rules I have here. Now I want to make sure that I'm working with #mainContent #mainArticle ul li, which will affect all of the list items across the board.

So I want to be able to use the Browse function in Dreamweaver to pick my file. So I'm going to go ahead and click Edit Rule, and go to the List category, where next to List-style-image, I'll click Browse, and then navigate to my Chapter 8 folder, 08_01 > _images, and the image I'm looking for is called star_bullet. And there you can see that it's a 16 x 16 dimension bullet and I'll go ahead and click Choose and OK.

So now my bullets have a very nice star next to them. Now, one thing I wanted to show you was the bullet itself actually in Fireworks. This is something you might encounter when you're starting to work with images for your bullet. If you go ahead and take an image, and just use, let's say, the entire square of the image, the bullet is actually going to be positioned a little bit higher than what you might want. In this case, let me zoom in here so you can see it a little bit more appropriately, you'll notice that the star image is actually shifted down two pixels, so that it does appear in the center of the line.

While it's possible to achieve the same result with the background image and background position properties, I find it easier and more appropriate to use the List-style-image property with an adjusted image. As you work with bulleted lists, you'll find that you often need to target your ul and li elements as CSS Selectors to get the bulleted list that fit best into your site, but it's all very doable.

Show transcript

This video is part of

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

36 video lessons · 8199 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
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 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 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.