Forum Moderators: not2easy

Message Too Old, No Replies

image before a dt

         

eveningwalk

6:52 pm on May 6, 2006 (gmt 0)

10+ Year Member



How do I place an image before a dt element using CSS? (similar to the list-style-image in a ul/li element)

Thanks,
ew

Moby_Dim

7:39 pm on May 6, 2006 (gmt 0)

10+ Year Member



May be use in dt style background : url(img.gif/jpg) top left no-repeat. And add some padding-left to adjust.

londrum

8:16 pm on May 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



the browser probably sets the <dt> as display:block by default.
so just make it display:inline, or display:run-in.
and do the same with the image too, because that might be displayed as a block as well