belhum Posted November 11, 2020 Share Posted November 11, 2020 Site URL: https://www.ivpr.co/contact I'm looking to custom code the contact page on this site to resemble a fill in the blank questionnaire. My client referenced this site as a contact form to emulate. I'm using the Brine template. I've figured out how to adjust some of the css using this guide, but can't figure out how to align the text and blanks on the same line and be responsive to screen sizes. Can anyone help me figure this out? If it's helpful, the css that I could find for the reference site can be found below, but it is not complete, and the form was built using Cognito Forms, and I would love to use the Squarespace contact form block and edit it from there. .cognito form { font-size: 16px; } .cognito:not(.c-forms-actionBar){ max-width: 890px; margin: 0 auto; } .c-public-form .cognito { max-width: 890px; } .cognito .c-forms-form { background-color: rgba(255,255,255,1);} .cognito .c-forms-form .c-dropdown select{padding-right:26px;} .cognito.c-ie .c-forms-form .c-dropdown select{padding-right:6px;} .cognito-background { background-image: ; background-size: cover; background-attachment:fixed; background-repeat: repeat; background-color: rgba(204,204,204,1); } .cognito .c-forms-form .c-forms-heading {background-color:rgba(0, 0, 0, 0);} .cognito .c-forms-form .c-forms-form-title h2 { font-family: 'Open Sans Condensed',Helvetica,sans-serif; font-weight: bold; font-size: 1.5em; color:#000000; line-height:1.15em; } .cognito .c-forms-form .c-forms-description{color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:0.8125em;} .cognito .c-forms-form .dropdown-menu > li > a {font-family:Arial,Helvetica,sans-serif;font-size:100%;} .cognito .c-forms-form .c-helptext{font-family:Arial,Helvetica,sans-serif;color:#000000;font-size:calc(0.8125em * .9);} .cognito .c-forms-form h1, .cognito .c-forms-form h2,.cognito .c-forms-form h3, .cognito .c-forms-form h4, .cognito .c-forms-form h5, .cognito .c-forms-form h6{font-family: 'Open Sans Condensed',Helvetica,sans-serif; font-weight: bold; color:#000000;line-height:1.2em;} .cognito .c-forms-form h1,.cognito .c-forms-form h2,.cognito .c-forms-form h3{font-size: 1.25em;} .cognito .c-forms-form h4{font-size: calc(1.25em * .9);} .cognito .c-forms-form h5{font-size: calc(1.25em * .9 * .9);} .cognito .c-forms-form h6{font-size: calc(1.25em * .9 * .9 * .9);} .cognito .c-forms-form .c-html h1{font-size: calc(1.25em / 0.813);} .cognito .c-forms-form .c-html h2{font-size: calc(1.25em * .9 / 0.813);} .cognito .c-forms-form .c-html h3{font-size: calc(1.25em * .9 * .9 / 0.813);} .cognito .c-forms-form .c-html h4{font-size: calc(1.25em * .9 * .9 * .9 / 0.813);} .cognito .c-forms-form .c-html h5{font-size: calc(1.25em * .9 * .9 * .9 * .9 / 0.813);} .cognito .c-forms-form .c-html h6{font-size: calc(1.25em * .9 * .9 * .9 * .9 * .9 / 0.813);} .cognito .c-forms-form :not(.c-question) > .c-label{ font-family: 'Open Sans Condensed',Helvetica,sans-serif; font-weight: bold; font-size: 0.875em; color:#000000;line-height:1.3em; } .cognito .c-forms-form .c-editor-date-icon,.cognito .c-forms-form .c-editor-time-icon, .cognito .c-forms-form .c-remove-item, .cognito .c-forms-form .c-save-resume-close{color:#000000;} .cognito .c-forms-form .c-remove-item{ padding-top: .1em; font-size: 100%; } .cognito .remove-icon circle{ fill: #C24B23; stroke: #AE431F; } .cognito .remove-icon line { stroke: #FFFFFF; } .cognito .c-forms-form #c-save-resume-email-link{font-size:100%;} .cognito .c-forms-form .c-email-sent-message{font-family:Arial,Helvetica,sans-serif;font-size:0.8125em;} .cognito .c-forms-form .c-table-section:not(.c-responsive) select, .cognito.c-med .c-forms-form .c-table-section.c-responsive select, .cognito.c-lrg .c-forms-form .c-table-section.c-responsive select {font-size:1em} .cognito .c-forms-form .c-table-section:not(.c-responsive)>*:not(.c-table-header)>*>*, .cognito.c-med .c-forms-form .c-table-section.c-responsive>*:not(.c-table-header)>*>*, .cognito.c-lrg .c-forms-form .c-table-section.c-responsive>*:not(.c-table-header)>*>* {font-size:0.8125em;} .cognito .c-forms-form .c-table-section:not(.c-responsive)>*>*>* .c-editor, .cognito.c-med .c-forms-form .c-table-section.c-responsive>*>*>* .c-editor, .cognito.c-lrg .c-forms-form .c-table-section.c-responsive>*>*>* .c-editor {font-size:1em} .cognito.c-sml .c-forms-form .c-table.c-table-section.c-responsive .c-repeating-section-group > .c-repeating-section-item{padding-left: calc(2em * 0.813 - 8px)} .cognito.c-sml .c-forms-form .c-table.c-table-section.c-responsive .c-repeating-section-group>.c-repeating-section-item .c-repeating-section-item-title{margin-left: calc(-2em * 0.813 + 8px)} /* Override the indentation for readonly responsive tables */ .cognito.c-sml .c-forms-form .c-table.c-table-section.c-responsive.c-readonly .c-repeating-section-group > .c-repeating-section-item, .cognito.c-sml .c-forms-form [class*="c-readonly"] .c-table.c-table-section.c-responsive .c-repeating-section-group > .c-repeating-section-item{ padding-left: 0 !important; } .cognito.c-sml .c-forms-form .c-table.c-table-section.c-responsive.c-readonly .c-repeating-section-group>.c-repeating-section-item .c-repeating-section-item-title, .cognito.c-sml .c-forms-form [class*="c-readonly"] .c-table.c-table-section.c-responsive .c-repeating-section-group>.c-repeating-section-item .c-repeating-section-item-title{ margin-left: 0 !important; } /* Above styles shouldn't apply to readonly table section */ .cognito.c-sml .c-forms-form .c-section.c-readonly-always .c-table .c-repeating-section-group>.c-repeating-section-item .c-repeating-section-item-title{ margin-left: 0 !important;} .cognito .c-table-section:not(.c-responsive)+.c-validation, .cognito.c-med .c-table-section.c-responsive+.c-validation, .cognito.c-lrg .c-table-section.c-responsive+.c-validation {margin-left: calc(2em / 0.813)} /* Override previous */ .cognito .c-readonly-always .c-table.c-table-section+.c-validation {margin-left: 11px; } .cognito .c-forms-form .c-table-section:not(.c-responsive)~.c-repeating-section-add, .cognito.c-med .c-forms-form .c-table-section.c-responsive~.c-repeating-section-add, .cognito.c-lrg .c-forms-form .c-table-section.c-responsive~.c-repeating-section-add{font-size:0.8125em} .cognito :not(.c-responsive).c-table-section ~ .c-repeating-section-add .c-add-item, .cognito.c-med .c-table-section.c-responsive ~ .c-repeating-section-add .c-add-item, .cognito.c-lrg .c-table-section.c-responsive ~ .c-repeating-section-add .c-add-item {font-size:calc(0.875em / 0.813)} .cognito .c-forms-form{ background-color: rgba(255,255,255,1); } .cognito .c-forms-form .c-rating-scale .c-choice-option .c-label{ font-family:Arial,Helvetica,sans-serif; font-weight: normal; font-size: 0.8125em; color: #000000; } .cognito .c-forms-form .c-editor, .cognito .c-forms-form .c-rating-scale-questions{ font-family:Arial,Helvetica,sans-serif; font-weight: normal; font-size: 0.8125em; color: #000000; } .cognito .c-forms-form select, .cognito .c-forms-form input[type=text], .cognito .c-forms-form input[type=password], .cognito .c-forms-form input[type=email], .cognito .c-forms-form input[type=tel], .cognito .c-forms-form input[type=url], .cognito .c-forms-form textarea { font-family:Arial,Helvetica,sans-serif; font-weight: normal;} .cognito .c-editor .c-choice-option label, .cognito .c-editor label.c-yesno-radio, .cognito .c-editor.c-yesno-checkbox label {font-weight: normal;} .cognito .c-forms-form input::-webkit-input-placeholder{color: #cccccc;} .cognito .c-forms-form input:-ms-input-placeholder {color: #cccccc;} .cognito .c-forms-form input::-webkit-input-placeholder {color: #cccccc;} .cognito .c-forms-form input:-moz-placeholder {color: #cccccc;} .cognito .c-forms-form input::-moz-placeholder {color: #cccccc;} .cognito .c-forms-form .c-placeholder-text-styled, .cognito .c-forms-form .c-placeholder-text-styled select {color: #cccccc;} .cognito select option[value=""] { color: #cccccc; } .cognito .c-forms-form textarea::-webkit-input-placeholder{color: #cccccc;} .cognito .c-forms-form textarea:-ms-input-placeholder {color: #cccccc;} .cognito .c-forms-form textarea::-webkit-input-placeholder {color: #cccccc;} .cognito .c-forms-form textarea:-moz-placeholder {color: #cccccc;} .cognito .c-forms-form textarea::-moz-placeholder {color: #cccccc;} .cognito .c-forms-form a{ color: #C24B23;font-family: 'Open Sans Condensed',Helvetica,sans-serif; font-weight: normal; } /* Override link attributes in tables because they look dumb otherwise */ .cognito .c-table-section:not(.c-responsive) .c-table-body a, .cognito:not(.c-sml) > :not([id="c-forms-publish"]) .c-table-body a { font-family: Arial,Helvetica,sans-serif; font-weight: normal; font-size: 1em; } .cognito .c-forms-form .c-fileupload-download i,.cognito .c-forms-form .c-fileupload-delete i{text-decoration:none;color: #000000;} .cognito .c-forms-form button:not(.c-icon-button) {padding: .5em 1.25em; } .cognito .c-forms-form .c-add-item{padding:.5em;} .cognito .c-forms-form button:not(.c-icon-button),.cognito .c-forms-form .c-add-item, .cognito .c-forms-form input[type=button],.cognito .c-forms-form .c-fileupload-dropzone .c-upload-button button { background-color: #C24B23; border-color: #AE431F; color: #FFFFFF; font-family: 'Open Sans Condensed',Helvetica,sans-serif; font-weight: normal; font-size: 0.875em; border-radius:4px; } .cognito .c-forms-form .c-fileupload-dropzone .c-upload-button { font-size: inherit; } .cognito .c-forms-form button:not(.c-icon-button):hover, .cognito .c-forms-form input[type=button]:hover,.cognito .c-forms-form .c-add-item:hover, .cognito .c-forms-form .c-fileupload-dropzone .c-upload-button button:hover { background-color: #AE431F;} /* Alternating bg color */ .cognito .c-forms-form .c-repeating-section-group > div:not(.c-table-row):nth-child(odd){background:rgba(0,0,0,0.04);} .cognito.c-sml .c-forms-form .c-responsive .c-repeating-section-group > div.c-table-row:nth-child(odd){background:rgba(0,0,0,0.04);} .cognito .c-forms-form .c-repeating-section-group > div:last-child{border-bottom-color:rgba(0,0,0,0.04);} .cognito .c-forms-form .c-rating-scale tbody:nth-child(even){background:rgba(0,0,0,0.04);} .c-forms-form-admin-readonly .c-table-body.c-repeating-section-group > div:nth-child(odd) .c-field .c-editor, .c-repeating-section-container:not(.c-table-row):nth-child(odd), .c-rating-scale .c-rating-scale-questions > div:nth-child(odd), .c-rating-scale tbody:nth-child(even), .cognito .c-table-section:not(.c-responsive).c-readonly .c-table-body .c-table-row:nth-child(odd) .c-editor, .cognito .c-table-section:not(.c-responsive) [class*="c-readonly"].c-section .c-table-body .c-table-row:nth… Link to comment
hancock.marcie Posted October 4, 2022 Share Posted October 4, 2022 Hi @belhum, were you able to figure this out? 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