CSS-style XML Definition List?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is it possible to do definition-lists with styled XML?  I know it's
possible to style an element as a "list item", but the HTML dl and dd
tags don't seem to be emulable using CSS to style XML.

Probably I should use XSL anyway, since I can use CSS in XSL sheets
anyway.  But the site is already designed around CSS, and now that I
want to add dls ... well, there you are.

Re: CSS-style XML Definition List?

Quoted text here. Click to load it

Maybe. It's just not practical to do very much at all with XML + CSS
Bit of a dead-end IMHO.

Quoted text here. Click to load it

Look at the suggested CSS default for HTML 4, wherein we find the

dd, dl, dt { display: block }

dl { margin: 1.12em 0 }

dd { margin-left: 40px }

So just change the selectors to match your appropriate XML element,
and away you go.

Quoted text here. Click to load it

Much better idea.

Site Timeline