|
Posted by Andy Dingley on 03/08/07 12:09
On 8 Mar, 00:45, "Platonistos" <cassiu...@gmail.com> wrote:
> Is it possible to do definition-lists with styled XML?
Maybe. It's just not practical to do very much at all with XML + CSS
Bit of a dead-end IMHO.
> 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.
Look at the suggested CSS default for HTML 4, wherein we find the
following:
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.
> Probably I should use XSL anyway,
Much better idea.
Navigation:
[Reply to this message]
|