Styling of msgph
Posted: Wed Aug 02, 2023 2:26 pm
Hi,
I have a framework where I have added some cutom styling to dita documents.
My problem is that when it comes to msgph elements i want to put some text value before the text in the element.
So I added in my style.less file
And nothing happens. If I check the CSS inspector nothing shows.
But if I instead write it as :after in the style.less file, it works and I can see it in the CSS instepctor.
Both :before and :after works if I put it on for example P element.
Is there a special reason why msgph:before does not work? Is there some setting I need to set or override?
BR
Robin
I have a framework where I have added some cutom styling to dita documents.
My problem is that when it comes to msgph elements i want to put some text value before the text in the element.
So I added in my style.less file
Code: Select all
msgph:before {
color: #AAAAAA;
background-color: #E5E5E5;
content: "* ";
font-weight: bold;
}
But if I instead write it as :after in the style.less file, it works and I can see it in the CSS instepctor.
Both :before and :after works if I put it on for example P element.
Is there a special reason why msgph:before does not work? Is there some setting I need to set or override?
BR
Robin