{"id":29147,"date":"2021-02-15T11:00:08","date_gmt":"2021-02-15T04:00:08","guid":{"rendered":"https:\/\/docs.kirim.email\/?post_type=kb&#038;p=29147"},"modified":"2021-12-29T14:36:29","modified_gmt":"2021-12-29T07:36:29","slug":"how-to-create-a-custom-styling-form-on-html-embed-options","status":"publish","type":"kb","link":"https:\/\/docs.kirim.email\/en\/kb\/how-to-create-a-custom-styling-form-on-html-embed-options\/","title":{"rendered":"How to Create a Custom Styling Form on HTML Embed Options"},"content":{"rendered":"\n<p>You can change the default display of existing forms in KIRIM.EMAIL based on your preference. Please follow these instructions to change it..<\/p>\n\n\n\n<ol><li>Go to aplikasi.kirim.email page.<\/li><li>Create a new form or edit an existing one. Make sure the form status is ON. In the DESIGN, click the HTML tab.<\/li><li>Copy the available codes.<br><br><a href=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-3.png?ssl=1\"><img fetchpriority=\"high\" decoding=\"async\" width=\"934\" height=\"965\" class=\"alignnone size-full wp-image-29037\" src=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-3.png?resize=934%2C965&#038;ssl=1\" alt=\"\" style=\"width: 640px;\" srcset=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-3.png?w=934&amp;ssl=1 934w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-3.png?resize=290%2C300&amp;ssl=1 290w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-3.png?resize=768%2C793&amp;ssl=1 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" data-recalc-dims=\"1\" \/><\/a><br><br><\/li><li>Open <a href=\"https:\/\/codepen.io\/pen\/\" target=\"_blank\" rel=\"noopener\">https:\/\/codepen.io\/pen\/<\/a> and paste them to the HTML column.<br><br><a href=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?ssl=1\"><img decoding=\"async\" width=\"1919\" height=\"968\" class=\"alignnone size-full wp-image-29039\" src=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?resize=1919%2C968&#038;ssl=1\" alt=\"\" style=\"width: 640px;\" srcset=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?w=1919&amp;ssl=1 1919w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?resize=300%2C151&amp;ssl=1 300w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?resize=1024%2C517&amp;ssl=1 1024w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?resize=768%2C387&amp;ssl=1 768w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-4.png?resize=1536%2C775&amp;ssl=1 1536w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/a><br><br><\/li><li>Change the layout by clicking Change View button. Select the HTML codes on the left and the display on the right as in the following image.<br><br><a href=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?ssl=1\"><img decoding=\"async\" width=\"1919\" height=\"950\" class=\"alignnone size-full wp-image-29041\" src=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?resize=1919%2C950&#038;ssl=1\" alt=\"\" style=\"width: 640px;\" srcset=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?w=1919&amp;ssl=1 1919w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?resize=300%2C149&amp;ssl=1 300w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?resize=1024%2C507&amp;ssl=1 1024w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?resize=768%2C380&amp;ssl=1 768w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/image-5.png?resize=1536%2C760&amp;ssl=1 1536w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/a><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Adding Tag &lt;style&gt;<\/h2>\n\n\n\n<p>After you move the codes, now add the following codes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- Enter the styling codes in the following bracket -->\n&lt;style>\n\u00a0\u00a0\/\/ Enter styling codes here\n&lt;\/style><\/code><\/pre>\n\n\n\n<p>after &lt;\/div&gt; code at the bottom..<\/p>\n\n\n\n<p>So you will see the result as in the following image:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/tag-style.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"289\" src=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/tag-style.png?resize=918%2C289&#038;ssl=1\" alt=\"\" class=\"wp-image-29047\" srcset=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/tag-style.png?w=918&amp;ssl=1 918w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/tag-style.png?resize=300%2C94&amp;ssl=1 300w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/tag-style.png?resize=768%2C242&amp;ssl=1 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" data-recalc-dims=\"1\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Knowing the Anatomy of Form<\/strong><\/h2>\n\n\n\n<p>Before we make a custom styling form, it is good to get to know what the anatomies of the form are. It will work to create selector with the custom styling that you want.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-1.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"366\" src=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-1.png?resize=684%2C366&#038;ssl=1\" alt=\"\" class=\"wp-image-29043\" srcset=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-1.png?w=684&amp;ssl=1 684w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-1.png?resize=300%2C161&amp;ssl=1 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" data-recalc-dims=\"1\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-2.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"252\" src=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-2.png?resize=684%2C252&#038;ssl=1\" alt=\"\" class=\"wp-image-29045\" srcset=\"https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-2.png?w=684&amp;ssl=1 684w, https:\/\/i0.wp.com\/docs.kirim.email\/wp-content\/uploads\/2021\/02\/anatomi-2.png?resize=300%2C111&amp;ssl=1 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" data-recalc-dims=\"1\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Basically there are only two consisting anatomies of KIRIM.EMAIL\u2019s form, such as:<\/p>\n\n\n\n<ol><li>Header<\/li><li>Content.<\/li><\/ol>\n\n\n\n<p>As for those in the Content, there are 3 parts :<\/p>\n\n\n\n<ol><li>Field<\/li><li>Input<\/li><li>Button.<\/li><\/ol>\n\n\n\n<p>These are 5 Elements we\u2019ll use to create custom styling forms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Selector <strong>Source Code<\/strong><\/h2>\n\n\n\n<p>Once you know the position and anatomy of the form, then grab the following selector source codes that suit your needs.<\/p>\n\n\n\n<p>For instance you\u2019d like to replace the header section, you\u2019ll just need to copy the codes for the header and paste them on the tag &lt;style&gt; section.<\/p>\n\n\n\n<p>Here are the following codes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Selector for the header form section *\/\n\n#flexbox-style .kirimemail-form-body {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0background-color: unset;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0color: unset;\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Selector for the content form section *\/\n\n#flexbox-style .kirimemail-form-field {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0background-color: unset;\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Selector button *\/\n\n#flexbox-style .button:not(.zmb).slate {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0background: #2d86c2;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0box-shadow: 0 0 0 1px #2d86c2;\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Selector button when tapped by a mouse cursor (hover) *\/\n\n#flexbox-style .button:not(.zmb).slate:hover {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0background: #ca9146;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0box-shadow: 0 0 0 1px #ca9146;\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Selector field \/ input box*\/\n\n#flexbox-style .kirimemail-custom-field dd {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0padding: 5px;\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Selector input *\/\n\n#flexbox-style .kirimemail-custom-field input {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0padding: 20px;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0height: 100% !important;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0width: 100% !important;\n}<\/code><\/pre>\n\n\n\n<p>Here are some descriptions for the properties often used for styling on the form.<\/p>\n\n\n\n<ul><li>background-color = Background Color<\/li><li>color = text color<\/li><li>box-shadow = shadow color and its size<\/li><li>margin = width of the outermost space of the element<\/li><li>padding = width of the innermost space of the element<\/li><li>height = element height<\/li><li>width = element width.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Usage Examples<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>#flexbox-style .kirimemail-form-body {\nbackground-color: #32a895;\ncolor: black !important;\n}<\/code><\/pre>\n\n\n\n<p>If styling does not give you any effects, you can use additional code !important as in the example above. Width and height uses size units of px, for example: margin : 24px.<\/p>\n\n\n\n<p>If you have finished with the custom styling please copy the codes and embed it into your website page.<\/p>\n\n\n\n<p>Complete.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can change the default display of existing forms in KIRIM.EMAIL based on your preference. Please follow these instructions to change it.. Go to aplikasi.kirim.email [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[42],"kbtag":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/kb\/29147"}],"collection":[{"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/comments?post=29147"}],"version-history":[{"count":4,"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/kb\/29147\/revisions"}],"predecessor-version":[{"id":30773,"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/kb\/29147\/revisions\/30773"}],"wp:attachment":[{"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/media?parent=29147"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/kbtopic?post=29147"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/docs.kirim.email\/en\/wp-json\/wp\/v2\/kbtag?post=29147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}