You are here: Re: CSS-style XML Definition List? « HTML « IT news, forums, messages
Re: CSS-style XML Definition List?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация