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

Question

Question

How do you calculate space in CSS?

asked on April 18, 2022

I am trying to do a couple of fields inline with CSS on a form.  I always have to just play with the pixel or percentage widths of the field labels and field, but know there has to be a way to KNOW what you are calculating whether it is two fields or three....  In my current situation, I have two fields.  I want the width to allow the labels to be on a single line with no word wrap and then have the fields after them.  

 

I have mostly gotten this accomplished, but the field width on each is still just a tiny bit short.  There is extra space to the left of the fields, but I can't figure out how to utilize the space.

 

0 0

Replies

replied on April 19, 2022

Hi Christa,

The entire field width also needs to be set. Try append following:

#q191, #q192 {width:50%;}
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.