Page 1 of 1

xml author view css customisation issue

Posted: Mon Oct 22, 2012 3:57 pm
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!

Re: xml author view css customisation issue

Posted: Mon Oct 22, 2012 4:06 pm
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

Re: xml author view css customisation issue

Posted: Mon Oct 22, 2012 4:30 pm
by melanino
Thanks for the quick response!

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

:-)