OXygen CSS selector!
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 157
- Joined: Mon Aug 18, 2014 4:11 pm
OXygen CSS selector!
Hi team,
We would like to do a change in Oxygen CSS for a particular element.
The element is as below,
When the x element is present as above in the editor, in Oxygen Author mode, we would need to display the attribute value of "z" in the Author. Here it is "attribute_value". By default, the "direct_text" is displayed in author mode.
Could you please help in this situation?
We have added below CSS to show "attribute_value", but the problem is that the text "direct_text" is always rendered along with it. We are unable to remove it.
Also if we keep the CSS to remove the x value from the Author mode, we are loosing the value "attribute_value" also in the Author mode.
Please help here.
Regards,
Shabeer
We would like to do a change in Oxygen CSS for a particular element.
The element is as below,
Code: Select all
<x>direct_text<y z="attribute_value"/></x>
Could you please help in this situation?
We have added below CSS to show "attribute_value", but the problem is that the text "direct_text" is always rendered along with it. We are unable to remove it.
Code: Select all
x > y{
content:attr(z)
!important;
}
Code: Select all
x{
display:none !important;
}
Regards,
Shabeer
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: OXygen CSS selector!
Post by alex_jitianu »
Hello,
The -oxy-collapse-text extension hides the text, but keeps the element present in the layout.
Let me know if it solves you use case.
Best regards,
Alex
The -oxy-collapse-text extension hides the text, but keeps the element present in the layout.
Code: Select all
x{
visibility:-oxy-collapse-text;
}
Best regards,
Alex
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service