jeffhowell76 Posted February 25, 2017 Share Posted February 25, 2017 https://jeff-howell-sysm.squarespace.com/survey I am trying to get the radio buttons to be horizontal and not vertical... any help would be appreciated. Link to comment
paul2009 Posted February 25, 2017 Share Posted February 25, 2017 Hi Jeff The radio buttons are normally displayed in a block which means that they each appear on a new line. If we change this to 'inline' they'll appear side-by-side. When you change this, the buttons appear right beside each other and this can make them difficult to click. You may want to add some additional spacing (margin) between them. I've added 5-pixels as an example, but you can change this or remove it altogether. This horizontal line of radio buttons will be too wide for smaller displays and so it won't look good. This will affect screen resolutions lower than 1088-pixels wide. I've added a media query to check that screen size. If the screen isn't wide enough, the radio buttons will continue to appear vertically. Add the following to Design > Custom CSS: /* When viewport is 1088 pixels minimum */ @media only screen and (min-width: 1088px) { .form-wrapper .field-list .field .option { /* Show radio buttons side-by-side */ display: inline; margin-right: 5px; } } Paul I post answers because I want to help fellow Squarespace users. In return please Accept an answer if it is correct. If it didn't help, feel free to ask for more help or wait for others to add their comments.To everyone! If you find this (or any) answer helpful, please vote it up using the up arrow. This will let other users know it's a good answer. You'll find some more free Squarespace tips on our website. 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
jeffhowell76 Posted February 27, 2017 Author Share Posted February 27, 2017 That is perfect. Thank you so much, @Paul2009. My coding skills are a littel rusty. Link to comment
jeffhowell76 Posted February 27, 2017 Author Share Posted February 27, 2017 That is perfect. Thank you so much, @Paul2009. My coding skills are a littel rusty. Link to comment
tpdietz Posted May 29, 2017 Share Posted May 29, 2017 Thank you. Enough to guide me to do exactly what I wanted to do. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.