How to Create a Custom Styling Form on HTML Embed Options

Last modified: February 15, 2021
Estimated reading time: 2 min

You can change the default display of existing forms in KIRIM.EMAIL based on your preference. Please follow these instructions to change it..

  1. Go to aplikasi.kirim.email page.
  2. Create a new form or edit an existing one. Make sure the form status is ON. In the DESIGN, click the HTML tab.
  3. Copy the available codes.
  4. Open https://codepen.io/pen/ and paste them to the HTML column.
  5. 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.

Adding Tag <style>

After you move the codes, now add the following codes:

<!– Enter the styling codes in the following bracket –>

<style>

  // Enter styling codes here

</style>

after </div> code at the bottom..

So you will see the result as in the following image:

Knowing the Anatomy of Form

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.

Basically there are only two consisting anatomies of KIRIM.EMAIL’s form, such as:
  1. Header
  2. Content.
As for those in the Content, there are 3 parts :
  1. Field
  2. Input
  3. Button.

These are 5 Elements we’ll use to create custom styling forms.

Selector Source Code

Once you know the position and anatomy of the form, then grab the following selector source codes that suit your needs.

For instance you’d like to replace the header section, you’ll just need to copy the codes for the header and paste them on the tag <style> section.

Here are the following codes:

/* Selector for the header form section */

#flexbox-style .kirimemail-form-body {

        background-color: unset;

        color: unset;

}

 

/* SSelector for the content form section */

#flexbox-style .kirimemail-form-field {

        background-color: unset;

}

 

/* Selector button */

#flexbox-style .button:not(.zmb).slate {

        background: #2d86c2;

        box-shadow: 0 0 0 1px #2d86c2;

}

 

/* Selector button when tapped by a mouse cursor */

#flexbox-style .button:not(.zmb).slate:hover {

        background: #ca9146;

        box-shadow: 0 0 0 1px #ca9146;

}

 

/* Selector field / input box*/

#flexbox-style .kirimemail-custom-field dd {

        padding: 5px;

}

 

/* Selector input */

#flexbox-style .kirimemail-custom-field input {

        padding: 20px;

        height: 100% !important;

        width: 100% !important;

}

Here are some descriptions for the properties often used for styling on the form.
  • background-color = Background Color
  • color = text color
  • box-shadow = shadow color and its size
  • margin = width of the outermost space of the element
  • padding = width of the innermost space of the element
  • height = element height
  • width = element width.

Usage Examples:

#flexbox-style .kirimemail-form-body {
background-color: #32a895;
color: black !important;
}

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

If you have finished with the custom styling please copy the codes and embed it into your website page.
Completed.
If you have any questions, you are pleased to contact us through live chat or email at support@kirim.email.
Thank you

 

Was this article helpful?
Dislike 0 0 of 0 found this article helpful.
Views: 149