Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick one regarding <dd> list styles

Status
Not open for further replies.
Mar 11, 2004
127
0
0
GB
I have been trawling the net but haven't found a confirmed answer to my question.

Can I put a bullet point "list style" on my <dd> list items??

Many thanks,
Anthony
 
I don't think you can use the "list-style-type" if that's what you were thinking, but you could probably replicate the look by using a background image.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
dd must appear in a dl and thus is a valid list, and the list-style _should_ apply, but the issue is that browsers vary on rendering because they aren't very widely used...

What are you using them for?

[plug=shameless]
[/plug]
 
I couldn't get the list style to apply on IE6 or FF(2.0.0.11)

The solution I used was...

CSS
.bullet dd {
font:14px Verdana;
color:#000000;
text-decoration:none;
background-image: url(images/bullet.gif);
background-repeat: no-repeat;
background-position: 0 .25em;
padding: 0 0 0 10px;
}

HTML
<dl class="bullet">
<dt>Testing &amp; Commissioning includes...</dt>
<dd>Flash Testing.</dd>
<dd>Meggar Testing.</dd>
<dd>Ductor Testing of Joints.</dd>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top