CSS problems with list styles

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Matze
Sr. Propeller Head
Posts: 166
Joined: Mon Jun 20, 2016 10:35 pm

CSS problems with list styles

Post by Matze »

there is something strange in the neighborhood :mrgreen:

In my PDF outptut the lower-alpha list style class does not work, which is strange: The lower-alpha letters will be shown as upper-alpha letters instead.

Code: Select all

ol.abc	/* Kleine Buchstaben - Media Print */
	{
		list-style-type: lower-alpha;
	}

	ol.abc_haeng	/* Kleinen Buchstaben, hängender Einzug - Media Print */
{
		list-style-type: lower-alpha;
}

	ol.ABC	/* Großen Buchstaben - Media Print */
{
		list-style-type: upper-alpha;
}

	ol.ABC_haeng	/* Großen Buchstaben, hängender Einzug - Media Print */
{
		list-style-type: upper-alpha;
}

When looking in Flare`s stylesheet editor, there is something strange:


When changing the list-style-type from the ABC class, it will also change the list-style-type from the abc class.
It looks like a copied class which will be changed afterwards

uppercase.JPG
You do not have the required permissions to view the files attached to this post.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: CSS problems with list styles

Post by ChoccieMuffin »

Is this a new thing you're doing with your lists or an existing stylesheet that USED to work previously?

I'm wondering whether CSS is case-sensitive, too. So the reason your lower-case lists come out as upper-case is because ol.ABC comes later in the stylesheet than ol.abc.

Try changing your list names to ol.klein/ol.klein_haeng and ol.gross/ol.gross_haeng and see if that makes a difference.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
doloremipsum
Sr. Propeller Head
Posts: 290
Joined: Mon Aug 26, 2019 2:11 pm

Re: CSS problems with list styles

Post by doloremipsum »

As a general rule, CSS selectors are not case sensitive - ABC and abc are counted as the same style, so the second occurrence overwrites the first one. You've been lulled into a false sense of security because the text/Flare interface shows two separate styles, which in fact it's only one.
in hoc foro dolorem ipsum amamus, consectimur, adipisci volumus.
Post Reply