tags:

views:

54

answers:

3

CSS:

.about dt { 
list-style-type:none;
font-weight:bold;

}
.about dd { 
list-style-type: disc;
list-style-position: outside;
margin-left: 0px;
padding-left: 30px;
}

And the html

<dl class="about">
    <dt>Current topics and titles </dt>
    <dd>Fulfilling community residents&rsquo; appetite for information about 
    popular cultural and social trends and their desires for satisfying 
    recreational experiences</dd>
...

I want a disc before the DD, but it's not showing up in Chrome or IE. Any ideas what I've done wrong? Thanks!

+1  A: 
webdestroya
Right you are. Thanks! The only downside to adding the bull is I wouldn't be able to easily have it duplicate `list-style-position: outside;` ... Oh well, you can't have everything, where would you put it?
aslum
I would just put it as the first thing in the `<dt>` tag. You might be able to write some javascript to go and add all the bullet points, but for the most part, if you want a CSS option, you have to use a list.
webdestroya
+2  A: 

You can also use the :before pseudo-element in CSS to insert the bullet character just before every <dd> or use a background-image on it with a bullet which would also make it cross-browser as :before isn't supported in all browsers.

stagas
+1  A: 

I agree with Stagas, use a background image on the <dd> of your def. list. You don't want to add special characters to the mark-up itself...remember, keep content separate from presentation. Pseudo-elements aren't going to render in IE 7 and earlier.

Derek Cronk