So, to avoid getting repeat answers, the question in that thread was: "How do I adjust line spacing using HTML?"
My question is: "How do I adjust line spacing?"
Thanks!
(P.S. So far I'm really enjoying my work in Ignition. You guys are doing great!)
Even now this can be an ambiguous question. Are we talking about:
a) adjust spacing between multiple components
-OR-
b) adjusting space between multiple lines in a single component (like a label)
The first is easily accomplished from the tools at the right end of the Shape Editing Toolbar:
For the second, the answer may as well be “Nope”. The only way to do this would be via HTML. Unfortunately, while CSS support has been improved, line-height still only has a placeholder and no implememtation (for those interested in what CSS attributes are supported, you can look here).
The closest I have ever been able to come has been to use the padding-top attribute to achieve the same result-- sort of.
What it won’t do:
–work on word-wrapped lines.
–bring lines closer together. (Negative numbers for the padding value)
Here is an HTML solution. The only height directive obeyed by the element is the base font size.
Reduce the line height by setting a smaller font size. Then set the font size to be larger in the HTML for the labels.
<html> <span style= "font-size:200%">label text 1</span> <span style= "font-size:100%"> <BR></span> <span style= "font-size:200%">label text 2</span></html>
<html> <span style= "font-size:600%">label text 1</span> <span style= "font-size:100%"> <BR></span> <span style= "font-size:600%">label text 2</span></html>
Try that with the font property of the label set to 2, if it works the space between the 2 lines of text should be quite small. What version are you on? Could you attach a screenshot?
See, this is one of the issues I have with Ignition. I should not have to use HTML to put a line break in label text. I should not have to create 3 components on the screen to accomplish the spacing I like instead of just using one. Just my opinion.