Give me a HTML-MailForm Code which I can set with copying & pasting to my "Pages" or "Posts".
RL uses the div-type in the live demo.
div-type
Add the following to the CSS:
/*---------------------------------------------------
FORM | Start Contact
Class Name: .main_contact
--------------------------------------------------*/
.inputtext {
width: 100%;
}
.main_contact select {
background: #cfcedb;
height: 40px;
width: 95%;
border-radius: 5px;
position: relative;
z-index: 1;
}
.main_contact select::after {
position: absolute;
content: '';
width: 8px;
height: 8px;
right: 10px;
top: 50%;
transform: translateY(-50%) rotate(45deg);
border-bottom: 2px solid #666;
border-right: 2px solid #666;
z-index: -1;
}
.main_contact select {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background: none;
border: none;
color: #333;
font-size: 16px;
width: 100%;
height: 100%;
padding: 0 10px;
}
/* Centering of "Confirm" button */
.main_contact .pcenter {
margin: 0 auto;
text-align: center;
}
.main_contact .button_text,.btn_confirm{
margin: 0 auto;
text-align: center;
}
/*
.main_contact .apcf-content-key,.main_contact .apcf-content-value {
margin: 0;
padding-top: 0.5em;
padding-bottom: 0.5em;
vertical-align: middle;
line-height: 2.1;
}
*/
.main_contact .apcf-content-key { /* Align the left-side (item) to the right */
text-align: right ! important;
}
.main_contact .button_text,.btn_confirm {
border: 1px solid #000;
display: inline-block;
min-width: 160px;
padding: .9em;
height: 50px;
text-align: center;
color: #fff;
font-style: normal;
letter-spacing: 1px;
margin: 0;
font-size: 0.975rem;
font-weight: bold;
margin-top: 30px;
background: #000;
box-shadow: 0px 3px 2px 0px rgba(8, 8, 8, 0.35);
border-radius: 3px;
}
.main_contact .button_text:hover,.btn_confirm:hover {
border: 1px solid #000;
color: #000;
background: #fff;
box-shadow: 0px 3px 2px 0px rgba(8, 8, 8, 0.35);
border-radius: 3px;
}
.main_contact .button_text{
margin-top: 0;
}
ul-type
The form's style is created by ul. To remove the list mark(*) that is automatically displayed at the beginning of the sentence, add the following to the CSS:
/*---------------------------------------------------
FORM
--------------------------------------------------*/
#form_container ul li {
list-style-type:none
}
(*) Depending on your theme, you don't see the list mark at all.
table-type
( 2017/09/25, 20:20:17, JST )