x

How do I change the width of questions and answer text boxes in my form?

I can drag the edge to make the form wider but the questions all remain in a narrow column.  I have a lot of check box options and it looks terrible.  Can I change the width of the questions and text boxes?

6,851 Views
Message 1 of 17
Report
1 Best Answer

Best Answer

Try adding this to the Header Code field for the page your form is on:

<style>
	.wsite-form-field, .wsite-form-input
	{
		max-width:100% !important;
		width:100% !important;
	}
</style>

It won't show in the editor but should on the live site.

View Best Answer >

4,851 Views
Message 10 of 17
Report
16 REPLIES 16

Hey there! You should be able to edit the internal parts of the form the same way you would other elements. Is there a particular page or form giving you trouble?

6,849 Views
Message 2 of 17
Report

Hi, I'm using the Contact Form.  I've added text box answers and using the advanced options I've chosen 'large', but still the box only extends halfway across the width of the form.  Similarly with my check box options the option descriptions wrap around at around halfway across the page.  Here's a screenshot.  Any suggestions to have this extend across the width of the form?  Thanks!

image

6,829 Views
Message 3 of 17
Report

Ah, I see. It does look like that particular form is going as wide as possible. It may be something you'll want to bring up in the Feature Vote section, though we also have several Apps in the App Center that may offer forms more to your liking, so definitely check both out!

6,825 Views
Message 4 of 17
Report


@Queso wrote:

Ah, I see. It does look like that particular form is going as wide as possible.


I'm having the same problem, but the field is stretched all the way across the page.  I've tried putting spacers and dividers on both sides of the field, but to no avail.  Is there really no way to fix this?  It seems pretty basic to be able to control side margins. =-\

6,722 Views
Message 5 of 17
Report

Hello Keiva! The element width itself should be controllable as normal. Where are you seeing this form issue?

6,721 Views
Message 6 of 17
Report

Same question here!  Has anyone from Weebly been able to address this yet?

4,868 Views
Message 7 of 17
Report
Square

To make the fields stretch 100% you'd need to do a little bit of CSS customization. If you provide a link to the page of your site the form one of our Community members could probably help, @Maple.

4,866 Views
Message 8 of 17
Report

The link is http://maplepfa.weebly.com/get-involved.html.  Please let me know if you can change the width of the form.  Thanks in advance!

4,854 Views
Message 9 of 17
Report

Best Answer

Try adding this to the Header Code field for the page your form is on:

<style>
	.wsite-form-field, .wsite-form-input
	{
		max-width:100% !important;
		width:100% !important;
	}
</style>

It won't show in the editor but should on the live site.

4,852 Views
Message 10 of 17
Report

Miraculous - thank you!!

3,121 Views
Message 11 of 17
Report

@BJ, Thanks so much!  It worked perfectly!!!

3,106 Views
Message 12 of 17
Report

This did work for me.

Just to be clear...  Click the "Pages" link at the top of the page.  Click on the page that the form resides at in the left hand pane.  Then click "SEO Settings".  Paste the code in to the text box that says "HEADER CODE".  Then publish!

<style>
	.wsite-form-field, .wsite-form-input
	{
		max-width:100% !important;
		width:100% !important;
	}
</style>

Cheers.

Kitch.

3,053 Views
Message 17 of 17
Report

Thank you Kit!! I have been trying to solve this for a long time -- now the survey looks awesome! 

2,975 Views
Message 17 of 17
Report

Still can't figure it out. It generates a ton of text when I paste in. I just want a generic contact form to have a width of the entire screen. mchaelhunterhayes@gmail.com

2,905 Views
Message 17 of 17
Report

I've tried doing this but it's still not working! Are there any other suggestions to fix this issue?

2,309 Views
Message 17 of 17
Report

Worked for me too, yay!

2,525 Views
Message 18 of 17
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.