Css Condition Not working

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Srinarayan
Posts: 35
Joined: Tue Jun 08, 2021 3:27 pm

Css Condition Not working

Post by Srinarayan »

Hi Team,

We are having a hard time figuring out why our css code is not working properly.

I have attached a piece of code of css, xml and as well as an image. According to the css condition the "workflow status" element should be visible. But when when we see our oxygen web author it is not visible (please refer the image in the attached zip). The logic of the code is fine and the element workflow status should be visible but it is not.

It would be great if you guys can offer some insight.
css.zip
(6.45 KiB) Downloaded 10 times
Regards,
Srinarayan
mihaela
Posts: 275
Joined: Wed May 20, 2009 2:40 pm

Re: Css Condition Not working

Post by mihaela »

Hi,

The :first-of-type pseudoclass is not supported [1] in Web Author.
You can try something similar:

Code: Select all

bookevent ~ bookevent bookeventtype{
    display:none !important;
}
[1] https://www.oxygenxml.com/doc/versions/ ... tions.html

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply