Element attributs specified in CSS are not triggered in Webhelp Responsive output
Posted: Fri Jun 07, 2024 4:58 pm
Hi,
In our documentation we are using two two ways of images in our topics: one for general screenshots (placement=break) and one for icons/buttons (placement=inline).
Now, for the 1. scenario we have specified in our CSS
Like this, the images are not stuck directly under or above certain text elements.
But now I would like to address both scenarios with different CSS rules by using their attribute.
However, the HTML5 output doesn't recognize the attribute, hence the following CSS will not apply to the images:
How can I achieve that this differentiation in both my image types?
Thanks,
Josie
In our documentation we are using two two ways of images in our topics: one for general screenshots (placement=break) and one for icons/buttons (placement=inline).
Now, for the 1. scenario we have specified in our CSS
Code: Select all
.image {
margin-bottom: 0.5em;
margin-top: 0.5em;
}
But now I would like to address both scenarios with different CSS rules by using their attribute.
However, the HTML5 output doesn't recognize the attribute, hence the following CSS will not apply to the images:
Code: Select all
*[class~='topic/image'][placement='break'] {
margin-bottom: 0.5em;
margin-top: 0.5em;
}
*[class~='topic/image'][placement='inline'] {
display : inline ;
vertical-align: baseline;
}
Thanks,
Josie