Custom list styling
Posted: Tue Sep 20, 2011 2:30 am
In my docbook framework I want to be able to use custom list style character: dash. It is not a part of css standard so it has to be done with "content". I can do that but I cannot keep the text after first line aligned with top line. Usually on the web I would do it with negative text-indent but it does not seem to work for in oXygen. How should I go about this issue?
Sample files below.
Sample files below.
Code: Select all
itemizedlist[mark="dash"] > listitem > *:FIRST-CHILD:BEFORE
{
content: '- ';
}
itemizedlist[mark="dash"] > listitem > *
{
text-indent: -1.4em;
}
itemizedlist[mark="dash"] > listitem
{
list-style-type: none;
}
itemizedlist[mark="dash"]
{
margin-left:1.4em;
}
Code: Select all
<itemizedlist mark="dash">
<listitem>
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud</para>
</listitem>
<listitem>
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud</para>
</listitem>
</itemizedlist>