CSS to show/hide

Post here questions and problems related to editing and publishing DITA content.
lauralordelaure
Posts: 1
Joined: Thu Dec 11, 2025 10:11 am
Contact:

CSS to show/hide

Post 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,
Radu
Posts: 9601
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS to show/hide

Post 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
You do not have the required permissions to view the files attached to this post.
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply