Image classes?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 32
- Joined: Wed Aug 16, 2017 8:07 pm
Image classes?
Does oxygen give you enough flexibility to apply individual class tags to images? ie: <img src="something.png" class="unity-img"> so that I can create a class for css styling for some images but not others?
Thanks!
Kim
Thanks!
Kim
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Image classes?
Post by bogdan_cercelaru »
Hello,
Yes, you can obtain a custom CSS class in the generated output using the @outputclass attribute in the DITA topic. The value of this attribute will be found in the resulted @class attribute in the output.
For example, if your DITA topic contains the resulted output contains
Regards,
Bogdan
Yes, you can obtain a custom CSS class in the generated output using the @outputclass attribute in the DITA topic. The value of this attribute will be found in the resulted @class attribute in the output.
For example, if your DITA topic contains
Code: Select all
<image href="path/to/image" outputclass="mystyle"/>
Code: Select all
<img class="image mystyle" src="path/to/image"/>
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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