You are viewing limited content. For full access, please sign in.

Question

Question

How do I remove the space between a field and the date?

asked on May 28, 2015

 I have two fields set up below the date question. With the date being so far to the right, it looks bad. Is there any css code for removing the spacing between a field and an answer? Thanks!

Untitled.png
Untitled.png (12.19 KB)
0 0

Answer

SELECTED ANSWER
replied on May 28, 2015

You can also use something like

.inline {display:inline-block; vertical-align:top;}
.cf-label {width: 170px!important;}
#q2 .cf-medium, #q3 .cf-medium, #q4 .cf-medium, #q5 .cf-medium, #q6 .cf-medium, #q7 .cf-medium {width: 100%;}
#q2 .cf-field, #q3 .cf-field, #q4 .cf-field, #q5 .cf-field, #q6 .cf-field, #q7 .cf-field {width: 180px;}

to get your form to look like

The fields are just q1 through q7 (left to right, top to bottom) and everything but the initial "Date" field uses the CSS class called inline.

1 0

Replies

replied on May 29, 2015

You have to play with it a bit to see how many pixels you need for each label.

Right now, the width of your label is very long, thus the gap you see. So, you need to shorten the label width using CSS:    #q1 label {width: 50px;}

If 50 is too small, increase the number. If you want to change the width of the field, add the additional lines that Alex indicated above. I believe the cf-medium should be used on fields whose width you set to medium when configuring the field. If some of the fields' widths are set to small, large, or x-large, change cf-medium to whatever size was selected.

1 0
replied on May 28, 2015

yeah its

#qID .cf-field {width: xxxpx;}

0 0
replied on May 29, 2015

Thanks, guys!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.