Is it possible to HAVE a bullet in front of a <dd>
tag just like <li>
i cannot use <li>
because i need to validate and <dl><dt>
and <dd>
is just fine
views:
76answers:
3
+1
A:
You could achieve it with a background image.
dt { background: transparent url(bullet.png) no-repeat; padding-left: 20px; }
EDIT: added padding-left.
jessegavin
2009-11-12 20:56:18
Note: you will obviously want this in combination with left padding.
Josh Stodola
2009-11-12 20:58:14
Josh is right. +1
jessegavin
2009-11-12 21:00:17
i will use jpg, and it work fine... thanks
marc-andre menard
2009-11-12 21:06:34
A:
By default a definition list doesn't have bullets. But you can use an image like jessegavin suggested. Remember about margins, paddings and .png problems with IE6 when you use a solution like this.
Good luck.
Chris
2009-11-12 20:59:33
A:
Shouldn't it be possible to play around with CSS like this?
dt:before {
content: "•";
position: ...;
margin: ...;
}
This is not nice, but... well, using a definition list element if you do not actually want a definition list to be shown is ugly anyway.
ndim
2009-11-12 21:04:57