CSS-PDF: Borders around notes are too big
Posted: Thu Jul 16, 2020 11:38 pm
Oxygen 22, 2020021016
I want to but a red border around my Warning notes. I add this rule to my CSS:
.note_warning {
border: 2px solid red;
}
However, this extends the border all the way to the end of the div, as seen here:
https://i.imgur.com/QmYdnf6.jpg
I want this border to end at the end of the text. Which means I don't want to put the border on the div itself, but rather something inside the div.
Looking at the HTML, I see that the structure is:
<div type="note_warning">
:: before <!-- Add warning icon -->
<span>WARNING</span>
Warning Text
<div>
Unfortunately, there is no structure that represents the area that I want. I need to add a new div that includes:
::before
span
warning text
If this were webhelp responive, I would edit the page templates. But seeing as how this is only a merged file, I don't what templates to edit to include this div.
Thanks.
I want to but a red border around my Warning notes. I add this rule to my CSS:
.note_warning {
border: 2px solid red;
}
However, this extends the border all the way to the end of the div, as seen here:
https://i.imgur.com/QmYdnf6.jpg
I want this border to end at the end of the text. Which means I don't want to put the border on the div itself, but rather something inside the div.
Looking at the HTML, I see that the structure is:
<div type="note_warning">
:: before <!-- Add warning icon -->
<span>WARNING</span>
Warning Text
<div>
Unfortunately, there is no structure that represents the area that I want. I need to add a new div that includes:
::before
span
warning text
If this were webhelp responive, I would edit the page templates. But seeing as how this is only a merged file, I don't what templates to edit to include this div.
Thanks.