Pages: 1
Print
Author Topic: Modifying a list item  (Read 2478 times)
MarieS
Member

Posts: 9


« on: March 10, 2010, 11:31:39 PM »

Using XMEE  Version#: 5.5.0.266

I specialized the DITA li, <listintro>.  It is the first child of an <ol> or <ul>.

I'm trying to modify the css so that it doesn't have a bullet or a number when editing in the tags or normal mode.

Here's what I have:

listintro { list-style-type:none; }

but it is still rendering with a bullet.   Any ideas how to fix this?

Thanks.

--Marie

 
Logged
Su-Laine Yeo
Solutions Consultant
Member

Posts: 260


« Reply #1 on: March 11, 2010, 01:05:54 PM »

I believe it's necessary to style based on the @class attribute rather than the element name, because you're trying to override styling that is defined elsewhere using the @class attribute.

For example, if the <listintro> element is defined in a domain called "foobar-d", the @class attribute for <listintro> is probably "+topic/li foobar-d/listintro"

So your stylesheet should say:

[class~="foobar-d/listintro"] { list-style-type:none; }

Please let us know if this works.
Logged

Su-Laine Yeo
Solutions Consultant
JustSystems Canada, Inc.
Pages: 1
Print
Jump to: