Styling of msgph

Oxygen general issues.
Robin_Etteplan
Posts: 1
Joined: Wed Aug 02, 2023 2:13 pm

Styling of msgph

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Styling of msgph

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply