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

Question

Question

forms CSS format

asked on March 3, 2020

Hello,


How could I format this collection so the fields align better? I would like to see the first choice aligned with the text box for the name and DOB fields. Thanks! 

 

0 0

Replies

replied on March 3, 2020 Show version history

In your css where you display the fields together add vertical-align:top

 

example

#q1, #q2, #q3, #q4 {display:inline-block;vertical-align:top;}

if that does not work try adding !important

example

#q1, #q2, #q3, #q4 {display:inline-block;vertical-align:top!important;}

 

all of the fields would align at the top

0 0
replied on March 4, 2020 Show version history

I also was given this CSS from another post that helps immensely!  This one works throughout the form, instead of just for a few specified fields. It would make (in your case) the words Name / DOB / Next Year / Discharge all align horizontally together:

/*To force a whole line to align at top*/
li.form-q {
    vertical-align:top;
}

0 0
replied on March 4, 2020

Thank you! That worked. I also had to make the label name shorter so it wrapped otherwise the fields did not completely align. 

 

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

Sign in to reply to this post.