EagleHeart Posted May 10 Share Posted May 10 I've put together a simple survey form as you can see at the URL above. I have two problems. First, I want to make the fonts for the options in the radio buttons a bit bigger (red arrow in the image). Second, I want to make the text in the text area response box smaller (yellow arrow). I'm on Version 7 and I can't find anything in the design panels that would allow me to make a font size change. Advice much appreciated. Thank you. HeyItsPrescott 1 Link to comment
EagleHeart Posted May 11 Author Share Posted May 11 (edited) Well... I've figured out part of the answer. To change the font size in the radio button options: /* form block - resize radio button fonts */ .form-wrapper .field-list .radio .option {font-size: 16px} Still trying to find the correct variable for the textarea input font. I've tried this code but it changes both the input box font size and the label/text font size, and I don't see any obvious lower level. /* form block - resize input text */ .form-wrapper .field-list .textarea {font-size: 12px} Appreciate any input. Edited May 11 by EagleHeart Add more info. Link to comment
Solution EagleHeart Posted May 11 Author Solution Share Posted May 11 Well folks, just goes to show you that I don't know much about CSS syntax, and this code snippet works. /* form block - resize input text */ .form-wrapper .field-list textarea {font-size: 16px} The difference is that I removed the period preceding "textarea". If anyone can explain this to me, I'd appreciate it. TIA. HeyItsPrescott 1 Link to comment
paul2009 Posted May 13 Share Posted May 13 On 5/11/2023 at 6:14 PM, EagleHeart said: The difference is that I removed the period preceding "textarea". If anyone can explain this to me, I'd appreciate it. Squarespace engineers just rolled out a new Form Block (May 2023) that uses a different technology and therefore uses different markup and different classes. If you check posts prior to May 2023 that refer to CSS and forms, they're likely to be out of date. Regarding your CSS and "textarea", let me try to explain. In CSS, you specify which elements to affect by using "selectors". They are like patterns that are used to determine which element(s) to style. They can classes, IDs, HTML tags, attributes and so on. When you refer to a class in CSS, you must prefix it with a dot. So the field-list class would be .field-list In the new forms, there is a <textarea> HTML tag that defines an element used to collect multi-line text input to collect user inputs like comments or reviews. Because <textarea> is a tag, it shouldn't be prefixed with a dot. The same would be true if you wanted to affect other elements by their tag, such as a heading like <h1> or a paragraph like <p>. You'd just use h1 or p. Let me know if that helps 🙂 Did this help? Please give feedback by clicking an icon below ⬇️ HeyItsPrescott and EagleHeart 2 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
EagleHeart Posted May 15 Author Share Posted May 15 Thanks. Makes sense. I'm an old C++ programmer from way back when so I understand references and inheritance but I've not done much with CSS except dabble as I've been doing here. Cheers. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment