xml author view css customisation issue

Oxygen general issues.
melanino
Posts: 2
Joined: Mon Oct 22, 2012 3:45 pm

xml author view css customisation issue

Post by melanino »

Hi there,

I'm customizing authors view css in oxygen but i can't figure out why "text-indent" property is not working.

Code: Select all


/*THE CODE*/

CSS:
p[rend="first"] {
display:block;
text-indent:2em;
font-size: 1.2em;
}
HTML:

Code: Select all


<p rend="first">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap .</p>
/*------------------*/

Do you have any suggestions?

Thanks in advance!
Radu
Posts: 9060
Joined: Fri Jul 09, 2004 5:18 pm

Re: xml author view css customisation issue

Post by Radu »

Hi,

The text-indent property is not yet supported. We'll try to implement it in a future version.
Right now as a workaround you could fake it by adding an additional :before selector like:

Code: Select all

p[rend="first"]:before {
content:" ";
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
melanino
Posts: 2
Joined: Mon Oct 22, 2012 3:45 pm

Re: xml author view css customisation issue

Post by melanino »

Thanks for the quick response!

I'll use the pseudo-element :before solution!

:-)
Post Reply