Simple Guide to Styling Lists Within Your Posts for Those with Limited Technical Skills

by Jason Francis Hunter on March 16, 2008

Styling Lists

Part seven of: “Stylizing Your Content”.

For this, there is only one file you will be working with:

  1. style.css

You can find this in your WordPress admin under Presentation > Theme Editor - listed on the right hand side.

The ordered list, by default, is fine and generally shouldn’t be changed. It simply lists things by number like so:

  1. Hello
  2. this is a
  3. ordered list

What we will do, is change the unordered list to display an image instead of the usual dot:

  • Hello
  • this is a
  • unordered list

To this:

  • Hello
  • this is a
  • unordered list

Adding a Bullet Image

Let’s open up the style.css file — listed as Stylesheet in your admin — and navigate to the following code:

.entry ul li:before, #sidebar ul ul li:before {
content: "\00BB \0020";
}

What!? Exactly. Pretty convoluted stuff. We don’t care about this stuff though. We’ll just add this little bit of code under the above code:

.entry ul li {
list-style-image: url(images/arrow.png);
}

This simply means, the “list item” within the “unordered list” should display the file called “arrow.png” which exists in a folder called “images” on the server.

So, this of course means: add your image, whatever it’s called, to your images folder in the same directory as your WordPress installation. Make sure your image is small enough, no one likes bullets that are bigger than the text that follows.

Bonus! — Here are a bunch of free bullet images.

Voila!

Image credit: Bob Jagendorf.

Bookmark/Share this post: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • bodytext
  • Mixx


{ 5 comments… read them below or add one }

1 Amy 03.18.08 at 10:40 am

Jay, this will come in very handy for me. I am always on the lookout for css tips, being the tech-challenged type of geek that I am. ;-)
Amy’s last blog post..Candling Eggs: a Metaphor for Finding Clients and Working With Them

2 Jay Francis Hunter 03.18.08 at 4:11 pm

My pleasure Ms. Manners.

3 Amy 03.18.08 at 4:15 pm

Hehe. Got any other CSS moves for the tech-stupid?

Amy’s last blog post..Don’t Pick Your Nose In Public, and Other Manners Your Mother Should Have Taught You

4 Jay Francis Hunter 03.18.08 at 4:20 pm

Did you just call me stupid? Or have I officially integrated dash and comma?

Yeah, of course I do! The whole series associated with this one is full of them: Here.

I’ve got other moves too, but those only show themselves if you ask nicely. ;o)

5 Amy 03.18.08 at 4:22 pm

I meant tech-stupid. The line break got in my way. LOL

Going to read the handbook now…

Amy’s last blog post..Don’t Pick Your Nose In Public, and Other Manners Your Mother Should Have Taught You

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recommended Resources

Advertise on Scribbles & Words