Inline image height
Post here questions and problems related to editing and publishing DITA content.
Inline image height
Using OxygenXML23.1 and the DitaMap WebHelp Responsive Transformation.
Besides images in various sizes, my project contains hundreds of inline images (mostly icons and buttons) which are specified in dita-topics like this
The transformation 'overwrites' the height setting via 'wh-responsive-image.css:4' to
Besides changing the original 'wh-responsive-image.css' in the Dita-Plugin, is there a way to 'unset' this 'height:auto' so that the originally set height becomes valid again?
Thanks for your help!
Besides images in various sizes, my project contains hundreds of inline images (mostly icons and buttons) which are specified in dita-topics like this
Code: Select all
<image href="../../Common/images/FREQ.png" height="18px" align="center" id="image_52" alt="WS"/>
Code: Select all
.image {
max-width: 100%;
height: auto;
background-repeat: no-repeat;
}
Thanks for your help!
Re: Inline image height
Hi,
Thank you for the feedback your provided!
I've just logged it in our internal improvements system, so that our developers will analyze it and see if there is something we could implement to improve this behavior.
Meanwhile, I suggest you should avoid modifying any of the plugin's source files directly, because this could conflict with files from a newer version and generate issues when you update the software at a later time.
We do not have a general rule to unset the height property, but you could use your own customization CSS to match specific elements and set a custom height value for them.
For your specific example, you could use something like:
You can find more details on how you could use your internet browser's CSS inspector to identify the selectors you should use in your CSS customization and how the custom CSS could be used in a scenario, in this section from the WebHelp User-Guide.
Regards,
Costin
Thank you for the feedback your provided!
I've just logged it in our internal improvements system, so that our developers will analyze it and see if there is something we could implement to improve this behavior.
Meanwhile, I suggest you should avoid modifying any of the plugin's source files directly, because this could conflict with files from a newer version and generate issues when you update the software at a later time.
We do not have a general rule to unset the height property, but you could use your own customization CSS to match specific elements and set a custom height value for them.
For your specific example, you could use something like:
Code: Select all
.image[height="18"] {
height: 18px;
}
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Re: Inline image height
Hello,
I just wanted to update this thread and let you know that this issue has been resolved in the latest maintenance build of Oxygen XML WebHelp 24.1,
2022030500 (released March 10th, 2021).
You can download it from our web site:
http://www.oxygenxml.com/download.html
Best Regards,
Costin
I just wanted to update this thread and let you know that this issue has been resolved in the latest maintenance build of Oxygen XML WebHelp 24.1,
2022030500 (released March 10th, 2021).
You can download it from our web site:
http://www.oxygenxml.com/download.html
Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Re: Inline image height
Hello, it looks like this issue has returned.
I'm using Oxygen WebHelp in XML Author 26.1.
I set height and width attributes for my images, but the browser still renders them using `height: auto` - which puts them at their native size.
In this page, the row of images near the top of the page all have a `height` attribute of `177` in DITA, which gets propagated to `height` in the published HTML:
https://deepbluecltd.github.io/Fi3ldMan ... chors.html
But, when rendered they are different sizes. I believe this is because of the `height: auto` in `topic.css`.
I could fix this by removing the attribute from `topic.css` but I'd like to leave the webhelp template unchanged.
I'm using Oxygen WebHelp in XML Author 26.1.
I set height and width attributes for my images, but the browser still renders them using `height: auto` - which puts them at their native size.
In this page, the row of images near the top of the page all have a `height` attribute of `177` in DITA, which gets propagated to `height` in the published HTML:
https://deepbluecltd.github.io/Fi3ldMan ... chors.html
But, when rendered they are different sizes. I believe this is because of the `height: auto` in `topic.css`.
I could fix this by removing the attribute from `topic.css` but I'd like to leave the webhelp template unchanged.
-
- Posts: 552
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Inline image height
Post by julien_lacour »
Hello Ian,
You're right, the problem has returned. I added an issue on our side to fix it again.
I will notify this thread once a fix will be available. Thank you for reporting the issue.
Regards,
Julien
You're right, the problem has returned. I added an issue on our side to fix it again.
I will notify this thread once a fix will be available. Thank you for reporting the issue.
Regards,
Julien
Re: Inline image height
Thanks for that Julien.
Note: a workaround is to remove the element from from in
Note: a workaround is to remove the
Code: Select all
.image,
Code: Select all
.image,.image:not(img[height]){height:auto}
Code: Select all
frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/app/topic.css
-
- Posts: 552
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Inline image height
Post by julien_lacour »
Hello Ian,
The fix for this issue is not in Oxygen 26.1 Maintenance Build, it is still under analysis.
When it will be available this thread will be notified.
Regards,
Julien
The fix for this issue is not in Oxygen 26.1 Maintenance Build, it is still under analysis.
When it will be available this thread will be notified.
Regards,
Julien
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