Hello,
I want to know how can we reduce the vertical spacing between two fields. I read few other posts which says we can do by editing css file but I am not able to find that file to edit. I have attached 2 images. I want to reduce gaps between fields in img1 so that it looks like img2.
Hi poojah12,
The first place to try is to change to the Tight layout setting on the Styles tab of the form. If that isn't enough then you can add Custom CSS using a Load CSS action in the form ON Load event.
Bob
Hi GreyHead,
Thanks for the reply. I tried Tight layout, it has reduced the spacing little bit. But i still want to reduce the spacing and also want to reduce the text box height and increase its width. I am not getting the option of 'Load CSS'. Is it because i created form using Custom code and not 'Wizard Designer'? Pls suggest.
Thanks
Hi poojah12,
If you go to the Form Editor then the Setup tab you should either be able to click the CSS tab (if you are using the Simple Wizard) or drag in a Load CSS action to the On Load event (if you are using the Normal/Advanced Wizard).
Bob
I got the CSS tab under Set Up. Now which class or div i should be editing?
Thanks
Hi poojah12,
Hard to say - it depends on what you need to change. If you use your browser web developer tools you can see what CSS is being applied and test the changes you want to make.
Bob
Alright. Just tell me where is this class defined "class="gcore-input gcore-display-table"?
Hi poojah12,
The class is defined in the HTML. The CSS that is related to it you can see using your browser web developer tools - they will tell you exactly which CSS and which file it is in. And you don't need to know as you can over-ride it using CSS in a Load CSS action in your form ON Load event.
Bob
Hi GreyHead,
I did what you said. I am able to reduce height of the text boxes and reduce the vertical spacing between every two text boxes.But I am not able to increase the width of the text boxes. Can you please inspect and let me know where I need to override or edit?
Thanks
Hi poojah12,
Please post a link to the form so I can take a quick look - I don't' see one here.
Bob
http://safehandindia.com/orgch/feedbackform.html
Hi GreyHead,
I have figured out the solution for the width issue. Now I have one last question. In the contact us form you can see the last check box item 'Others' I wanted the text box just beneath it to come beside it .
<div class="gcore-checkbox-item" id="fitem9"><input name="services" id="services9" class="A" title="" style="" data-load-state="" data-tooltip="" type="checkbox" value="Others" />
<label class="control-label gcore-label-checkbox" for="services9">Others:</label><input name="others" id="others" value="" placeholder="" maxlength="" size="" class="validate['required'] form-control A" title="" style="" data-inputmask="" data-load-state="" data-tooltip="" type="text" /></div></div></div></div>
This is the code.
Hi poojah12,
Add style='float:right;' to the input and set the width of the parent div.
Bob
Hello GreyHead,
I did what you said and its working accordingly. Thank you.
One more issue I faced I.e, I created a copy of this same form renamed it and changed few field labels thats it. But the structure looks different. The float right causes the textbox to move to absolute right. And even labels are occupying more than one line. I tried altering the width of the labels via console but they dont fall in a single line still. And because of this the vertical spacing between every text box looks uneven. Any suggestions?
Www.safehandindia.com/orgch/wbt.html is the link to the copy of the previous form.
Thanks,
Hi poojah2,
My guess is that you haven't set the form Style to tight?
And the box is floating to the end of very long check-box label. You can add some right padding if you want to move it back - or set the width of the form - or use shorter label.
Bob
Hello GreHead,
I did tight layout. Spacing is proper now. But the text label is not moving to the left side. I tried adding padding right to label and also padding left to input. But no effect. The label of the checkbox is 'Other/Autres:' with no spaces at all. Pls suggest.
Sorry not text label it is text box
Hi poojah12,
margin-right appears to work OK
Bob
Hi GryHead,
margin-right to check box label right?
Hi poojah12,
To the Other text input but you don't need to ask me for basic CSS stuff - use your browser web developer tools and try it out.
Bob