I have a simple form:
<j:Form id="myForm3" x="720 "y="120" height="100" width="300">
<j:FormItem label="data24">
<b:TextInput id="data24"/>
</j:FormItem>
<j:FormItem label="data25">
<b:TextInput id="data25"/>
</j:FormItem>
<j:FormItem label="data26">
<b:TextInput id="data26"/>
</j:FormItem>
<j:Form />
I want to control the gap between the label and the text input box. I thought I could do it with CSS but I can't find the right combination. How do do control this gap?
Or is there a better way to do the form?
gap in
FormItemis controlled trough the layout bead. By default In the following example (modeled like yours), I added aHorizontalLayoutbead only to the firstFormItemto show the difference with the rest:I changed
idforlocalIdsince html doesn't like duplicates, so better use always the later.Note 1: default gap is in Jewel Theme
Note 2: a gap = 2 means in default Jewel Theme, 2x3 = 6 pixels. The values are baked in CSS, and are multiples of 4. All the default numbers can be configured in Jewel Theme through SASS for more flexibility.