Page 1 of 1

CSS to show/hide

Posted: Thu Dec 11, 2025 10:15 am
by lauralordelaure
I have set up a custom styling for the <data> element but in Author mode I want to hide only the datatype attribute, for example.

How can I do it?

Thanks,

Re: CSS to show/hide

Posted: Thu Dec 11, 2025 6:08 pm
by Radu
Hi,

Can you maybe post a small XML snippet showing how the DITA XML <data> element is defined on your side? The @datatype attribute is not displayed out of the box on the <data> element in the Author mode as per my attachemnts.
Screenshot 2025-12-11 at 17.07.09.png
Screenshot 2025-12-11 at 17.07.00.png
Regards,
Radu