{"id":33784,"date":"2022-07-25T16:53:00","date_gmt":"2019-08-09T20:01:09","guid":{"rendered":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/?p=33784"},"modified":"2023-11-24T10:52:35","modified_gmt":"2023-11-24T10:52:35","slug":"improving-mobile-design-with-css","status":"publish","type":"post","link":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/","title":{"rendered":"Improving mobile design for your forms with CSS"},"content":{"rendered":"\n<p>123FormBuilder forms work great on all mobile devices and tablets and offer a user-friendly experience on any device.<\/p>\n\n\n\n<p>Our forms are by default mobile responsive, however, you can tweak your existing web forms design with our <a href=\"\/full-css-form-customization.html\">CSS form generator<\/a>. In this article, we will show you a step-by-step guide on how to accomplish that.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\" \/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-form-images\">Form&nbsp;Images<\/h2>\n\n\n\n<p>When you insert an image&nbsp;in the Form Header or HTML blocks you will need to specify the best settings to ensure that it will be mobile responsive. In the editing mode of your HTML field click the plus sign and select <b>Image<\/b>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png\" alt=\"Form header image\" class=\"wp-image-41733\" style=\"width:739px;height:349px\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png 1024w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage-300x142.png 300w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage-768x364.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>After you upload the image, in the <b>Dimensions<\/b> section, type <b>100%<\/b> in the first box (width) and <b>auto<\/b> in the second one (height). Disable the <em>Constrain proportions<\/em> option to&nbsp;maintain the original&nbsp;width and height dimensions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/EditImage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"347\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/EditImage.png\" alt=\"Edit image\" class=\"wp-image-41734\" style=\"width:525px;height:310px\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/EditImage.png 588w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/EditImage-300x177.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/a><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\" \/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-video\">Video<\/h2>\n\n\n\n<p>When you add an iframe to display&nbsp;a video you can use a custom CSS code to make it work perfectly for mobile devices. The CSS will be placed in the&nbsp;<b>Design<\/b> \u2192 <b>Add Custom CSS<\/b> section. This method applies to all iframes. Simply copy-paste the code from below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">iframe{\nheight: auto;\nwidth: 100%;\n}\n<\/pre>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/11\/image-278.png\"><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"581\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/11\/image-278.png\" alt=\"Custom CSS\" class=\"wp-image-47954\" style=\"aspect-ratio:0.6419965576592083;width:303px;height:auto\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/11\/image-278.png 373w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/11\/image-278-193x300.png 193w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/a><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\" \/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-font-size\">Font Size<\/h2>\n\n\n\n<p>Font size may seem like a small thing, but it is an important element, especially for mobile readers. You can use the following CSS and adjust the number of pixels (12).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@media only screen and (max-width: 550px) {\n#form *{\n&nbsp;&nbsp;&nbsp;&nbsp;font-size: 12px!important;\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\" \/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-submit-button\">Submit Button<\/h2>\n\n\n\n<p>Enlarge the submit button to have better visibility. The CSS code from below will make the submit button wider.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@media only screen and (max-width: 550px){\n#form button[data-role] {\npadding: 0px 33%;\n&nbsp; }\n}<\/pre>\n\n\n\n<p>Decrease the percentage number if you want the submit button to be&nbsp;more narrow or increase&nbsp;the number (33%)&nbsp;to make it wider.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/submitbuttonmobile.png\"><img loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"351\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/submitbuttonmobile.png\" alt=\"Form button mobile design\" class=\"wp-image-41736\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/submitbuttonmobile.png 341w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/submitbuttonmobile-291x300.png 291w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>To make the font size of the submit button smaller simply adjust the number of pixels.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@media only screen and (max-width: 550px){\n#form button[data-role] {\nfont-size:12px;\n  }\n}<\/pre>\n\n\n\n<p>That&#8217;s it! Now your forms are fully mobile responsive and form visitors will have the best user experience with these design tips.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>123FormBuilder forms work great on all mobile devices and tablets and offer a user-friendly experience on any device. Our forms are by default mobile responsive, however, you can tweak your existing web forms design with our CSS form generator. In this article, we will show you a step-by-step guide on how to accomplish that. Form&nbsp;Images [&hellip;]<\/p>\n","protected":false},"author":49,"featured_media":-1,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[125],"tags":[1030,1029],"class_list":["post-33784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css-tricks","tag-css-for-mobile-design","tag-mobile-design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Help: Improve Mobile Design on Web Forms | 123FormBuilder<\/title>\n<meta name=\"description\" content=\"Learn how to tweak your form elements to be fully mobile responsive. Improve your mobile design with these simple CSS codes. It is easy as 1-2-3!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Improving mobile design for your forms with CSS\" \/>\n<meta property=\"og:description\" content=\"Learn how to tweak your form elements to be fully mobile responsive. Improve your mobile design with these simple CSS codes. It is easy as 1-2-3!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/\" \/>\n<meta property=\"og:site_name\" content=\"123FormBuilder Knowledge Base\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-09T20:01:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-24T10:52:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png\" \/>\n<meta name=\"author\" content=\"Julia\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Julia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Help: Improve Mobile Design on Web Forms | 123FormBuilder","description":"Learn how to tweak your form elements to be fully mobile responsive. Improve your mobile design with these simple CSS codes. It is easy as 1-2-3!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/","og_locale":"en_US","og_type":"article","og_title":"Improving mobile design for your forms with CSS","og_description":"Learn how to tweak your form elements to be fully mobile responsive. Improve your mobile design with these simple CSS codes. It is easy as 1-2-3!","og_url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/","og_site_name":"123FormBuilder Knowledge Base","article_published_time":"2019-08-09T20:01:09+00:00","article_modified_time":"2023-11-24T10:52:35+00:00","og_image":[{"url":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png","type":"","width":"","height":""}],"author":"Julia","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Julia","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#article","isPartOf":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/"},"author":{"name":"Julia","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#\/schema\/person\/cc469207f9fad9e280a743a5dc96a843"},"headline":"Improving mobile design for your forms with CSS","datePublished":"2019-08-09T20:01:09+00:00","dateModified":"2023-11-24T10:52:35+00:00","mainEntityOfPage":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/"},"wordCount":314,"commentCount":0,"image":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png","keywords":["CSS for mobile design","mobile design"],"articleSection":["CSS Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/","name":"Help: Improve Mobile Design on Web Forms | 123FormBuilder","isPartOf":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#primaryimage"},"image":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png","datePublished":"2019-08-09T20:01:09+00:00","dateModified":"2023-11-24T10:52:35+00:00","author":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#\/schema\/person\/cc469207f9fad9e280a743a5dc96a843"},"description":"Learn how to tweak your form elements to be fully mobile responsive. Improve your mobile design with these simple CSS codes. It is easy as 1-2-3!","breadcrumb":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#primaryimage","url":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png","contentUrl":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/11\/FormHeaderImage.png"},{"@type":"BreadcrumbList","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/improving-mobile-design-with-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/"},{"@type":"ListItem","position":2,"name":"Improving mobile design for your forms with CSS"}]},{"@type":"WebSite","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#website","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/","name":"123FormBuilder Knowledge Base","description":"Search our documentation platform for answers, service specifications and 3rd-party integrations.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#\/schema\/person\/cc469207f9fad9e280a743a5dc96a843","name":"Julia","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1b07bbd30c86170f8eb191468f69aaeab7b6cfddcd35ceaf4099ab76a5dccb06?s=96&d=https%3A%2F%2Fui-avatars.com%2Fapi%2FJulia%2F96%2Ff3f3f3%2Faaa%2F1%2F0.5%2Ffalse%2Ftrue&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1b07bbd30c86170f8eb191468f69aaeab7b6cfddcd35ceaf4099ab76a5dccb06?s=96&d=https%3A%2F%2Fui-avatars.com%2Fapi%2FJulia%2F96%2Ff3f3f3%2Faaa%2F1%2F0.5%2Ffalse%2Ftrue&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b07bbd30c86170f8eb191468f69aaeab7b6cfddcd35ceaf4099ab76a5dccb06?s=96&d=https%3A%2F%2Fui-avatars.com%2Fapi%2FJulia%2F96%2Ff3f3f3%2Faaa%2F1%2F0.5%2Ffalse%2Ftrue&r=g","caption":"Julia"},"url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/author\/julia-unguras123formbuilder-com\/"}]}},"_links":{"self":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/33784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/comments?post=33784"}],"version-history":[{"count":23,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/33784\/revisions"}],"predecessor-version":[{"id":47956,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/33784\/revisions\/47956"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/media?parent=33784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/categories?post=33784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/tags?post=33784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}