Page 1 of 1

Styling of msgph

Posted: Wed Aug 02, 2023 2:26 pm
by Robin_Etteplan
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

Code: Select all

msgph:before {	
	color: #AAAAAA;
	background-color: #E5E5E5;
	content: "* ";
	font-weight: bold;
}
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

Re: Styling of msgph

Posted: Thu Aug 03, 2023 7:28 am
by Radu
Hi Robin,
I cannot reproduce the problem on my side. Is the "style.less" your main customization stylesheet or is it imported in another stylesheet?
We have a tech support form if you want to zip and share your framework configuration with us:
https://www.oxygenxml.com/techSupport.html
Regards,
Radu