How to set style property in oxy_label
Oxygen general issues.
-
- Posts: 29
- Joined: Thu Feb 11, 2010 5:00 pm
How to set style property in oxy_label
Hello, I can't figure out how to set style property in oxy_label() function. There is no example in documentation how to use "style" property.
I want set font-size for the label to 2em - how can I do it with oxy_label()? Is it possible, or not?
Thank you for your suggestions.
I want set font-size for the label to 2em - how can I do it with oxy_label()? Is it possible, or not?
Thank you for your suggestions.
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to set style property in oxy_label
Hi,
You are right, our documentation on this is not helpful, we'll work on this.
In your case the CSS should be something like:
Basically the value of styles is a small CSS fragment, it can also be something like:
in order to both have a larger font and a certain color and so on.
Regards,
Radu
You are right, our documentation on this is not helpful, we'll work on this.
In your case the CSS should be something like:
Code: Select all
:root{
content: oxy_label(text, "Label Text", styles, "font-size:2em;");
}
Code: Select all
:root{
content: oxy_label(text, "Label Text", styles, "font-size:2em;color:red;");
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 29
- Joined: Thu Feb 11, 2010 5:00 pm
Re: How to set style property in oxy_label
Thank you Radu, it works.
But this means that Help for XML Author (downloaded this weak from http://www.oxygenxml.com/doc/Author-UserManual.pdf) is not up-to-date. There is property called "style" not "styles" on page 368.
But this means that Help for XML Author (downloaded this weak from http://www.oxygenxml.com/doc/Author-UserManual.pdf) is not up-to-date. There is property called "style" not "styles" on page 368.
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to set style property in oxy_label
Hi Boris,
Glad it works.
I noticed that too when I was writing my small example and an issue is already opened for this.
Regards,
Radu
Glad it works.
I noticed that too when I was writing my small example and an issue is already opened for this.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service