dimaslanjaka

elegant contact form blogger

Mar 5th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 9.62 KB | None | 0 0
  1. 1. Add contact form on widget blogger
  2. 2. Edit html template find </b:skin>
  3. 3. Add this css
  4.  
  5. div#ContactForm1 {
  6.     display: none !important;
  7. }
  8.  
  9. 5. Add page in html editor mode, insert this code to them
  10.  
  11. <style>
  12. /****** Contact Form Designed by www.TwistBlogger.com ******/
  13. div#twist_blogger_cntct_form {
  14.     padding: 50px 0px;
  15.     border-radius: 2px;
  16.     color: #1D1D1D;
  17.     font-size: 15px;
  18.     font-weight: bold;
  19.     position: relative;
  20.     background-color: #404040;
  21.     font-family: sans-serif;
  22. }
  23. div#twist_blogger_cntct_form .wrap-me {
  24.     margin: 0 auto;
  25.     display: block;
  26.     padding: 30px 20px;
  27.     background-color: #F3F3F3;
  28.     max-width: 440px;
  29.     width: 100% !important;
  30.     border-top: 65px solid #FF0000;
  31.     box-sizing: border-box;
  32. }
  33. div#twist_blogger_cntct_form .wrap-me:before {
  34.     content: '\f0e0';
  35.     position: absolute;
  36.     font-family: FontAwesome;
  37.     font-weight: normal;
  38.     margin-top: -88px;
  39.     margin-left: -23px;
  40.     left: 50%;
  41.     display: inline-block;
  42.     font-size: 28px;
  43.     width: 53px;
  44.     height: 53px;
  45.     border-radius: 50px;
  46.     text-align: center;
  47.     color: #FFFFFF;
  48.     box-sizing: border-box;
  49.     border: 2px solid #FFFFFF;
  50.     line-height: 49px;
  51. }
  52. input#ContactForm1_contact-form-name, #ContactForm1_contact-form-email, #ContactForm1_contact-form-email:hover, #ContactForm1_contact-form-email:active {
  53.     padding: 5px;
  54.     margin-top: 4px !important;
  55.     box-shadow: none!Important;
  56.     max-width: 300px;
  57.     width: 100%;
  58.     border: 1px solid #D2D2D2;
  59.     line-height: 1em;
  60.     min-height: 31px;
  61.     background: #FEFEFE;
  62.     font-family: sans-serif;
  63.     margin-bottom: 15px;
  64.     border-radius: 0px;
  65. }
  66. .contact-form-email-message, .contact-form-email-message:active, .contact-form-email-message:hover {
  67.     padding: 5px;
  68.     margin-top: 4px !important;
  69.     box-shadow: none!Important;
  70.     max-width: 400px;
  71.     width: 100%;
  72.     border: 1px solid #D2D2D2;
  73.     line-height: 1em;
  74.     min-height: 80px;
  75.     background: #FEFEFE;
  76.     font-family: sans-serif;
  77.     margin-bottom: 10px;
  78.     border-radius: 0px;
  79. }
  80. /***** Focus *****/
  81. #ContactForm1_contact-form-name:focus, #ContactForm1_contact-form-email:focus, #ContactForm1_contact-form-email-message:focus {
  82.     outline: none;
  83.     background: #FFFFFF !important;
  84.     color: #444;
  85.     border-color: rgb(236, 235, 235) !important;
  86.     box-shadow: 0 0 5px rgba(241, 241, 241, 0.7) !important;
  87.     transition: all 0.3s ease-in-out !important;
  88. }
  89. /**** Submit button style ****/
  90. .contact-form-button-submit:hover {
  91.     color: #FFFFFF;
  92.     background: #0083FF !important;
  93. }
  94. .contact-form-button-submit {
  95.     background: #19B3EA;
  96.     display: table;
  97.     font-size: 17px;
  98.     margin: 0 !important;
  99.     border-radius: 0 !important;
  100.     max-width: 100%;
  101.     width: 100%;
  102.     min-width: 100%;
  103.     height: 32px;
  104.     line-height: 0.5em;
  105.     letter-spacing: 0.5px;
  106.     font-family: sans-serif;
  107.     font-weight: normal;
  108.     cursor: pointer;
  109.     outline: none!important;
  110.     color: #FFFFFF;
  111.     border: 1px solid #fff !important;
  112.     text-align: center;
  113.     padding: 0px 0px 0px 15px;
  114.     text-transform: capitalize;
  115.     transition: all 300ms ease-in-out;
  116.     -webkit-transition: all 300ms ease-in-out;
  117.     -moz-transition: all 300ms ease-in-out;
  118. }
  119. /**** Submit button on Focus ****/
  120. .contact-form-button-submit:focus, .contact-form-button-submit.focus {
  121.   border-color: #FFFFFF;
  122.   box-shadow: none !important;
  123. }
  124. /**** Error message ****/
  125. .contact-form-error-message-with-border .contact-form-success-message {
  126.   background: #f9edbe;
  127.   border: 1px solid #f0c36d;
  128.   bottom: 0;
  129.   box-shadow: 0 2px 4px rgba(0,0,0,.2);
  130.   color: #666;
  131.   font-size: 12px;
  132.   font-weight: bold;
  133.   padding-bottom: 10px;
  134.   line-height: 19px;
  135.   margin-left: 0;
  136.   opacity: 1;
  137.   position: static;
  138.   text-align: center;
  139. }
  140. /**** Submit Button On Success Message ****/
  141. .contact-form-button-submit.disabled, .contact-form-button-submit.disabled:hover, .contact-form-button-submit.disabled:active {
  142.     opacity: 0.9;
  143. }
  144. /****** Success Message *****/
  145. .contact-form-error-message-with-border {
  146.     background: #000000;
  147.     border: 1px solid #5A5A5A;
  148.     bottom: 0;
  149.     box-shadow: none;
  150.     color: #FDFDFD;
  151.     font-size: 15px;
  152.     font-weight: normal;
  153.     line-height: 35px;
  154.     margin-left: 0;
  155.     opacity: 1;
  156.     position: static;
  157.     text-align: center;
  158.     height: 35px;
  159.     margin-top: 45px;
  160. }
  161. .contact-form-cross {
  162.     height: 14px;
  163.     margin: 5px;
  164.     vertical-align: -8.5%;
  165.     float: right;
  166.     width: 14px;
  167.     border-radius: 50px;
  168.     border: 0 !important;
  169.     cursor: pointer;
  170. }
  171. .contact-form-success-message-with-border {
  172.     font-weight: normal;
  173.     background-color: #000;
  174.     border: 1px solid #FFF;
  175.     color: #FFF;
  176.     line-height: 35px;
  177.     margin-left: 0;
  178.     font-size: 13px;
  179.     opacity: 1;
  180.     position: static;
  181.     text-align: center;
  182.     height: 35px;
  183.     margin-top: 45px;
  184. }
  185. /* Extra Stuff */
  186. div#twist_blogger_cntct_form span.name-bg {
  187.     background-color: #E8F2FF;
  188.  }
  189. div#twist_blogger_cntct_form span.email-bg {
  190.     background-color: #FFE8E8;
  191. }
  192. div#twist_blogger_cntct_form span.name-bg, div#twist_blogger_cntct_form span.email-bg {
  193.     display: inline-block;
  194.     max-width: 300px;
  195.     line-height: 21px;
  196.     width: 100%;
  197.     color: #696969;
  198.     padding: 3px 5px;
  199.     margin: 0px 0px 4px;
  200.     box-sizing: border-box;
  201.     height: 30px;
  202.     border: 1px solid #E4E0E0;
  203.     padding-left: 39px;
  204. }
  205. div#twist_blogger_cntct_form span.name-bg:before {
  206.     content: '\f007';
  207.     background-color: #60A2FF;
  208.  }
  209. div#twist_blogger_cntct_form span.email-bg:before {
  210.     content: '\f1fa ';
  211.     background-color: #FF530B;
  212. }
  213. div#twist_blogger_cntct_form span.name-bg:before, div#twist_blogger_cntct_form span.email-bg:before, div#twist_blogger_cntct_form span.message-bg:before {
  214.     font-family: FontAwesome;
  215.     text-align: center;
  216.     margin: -4px 0 0px 0px;
  217.     font-weight: normal;
  218.     padding: 0;
  219.     line-height: 27px;
  220.     width: 28px;
  221.     height: 28px;
  222.     display: table;
  223.     position: absolute;
  224.     margin-left: -40px !important;
  225.     border: 1px solid rgba(0, 0, 0, 0.1);
  226.     border-right: 0 !important;
  227.     color: #FFFFFF;
  228. }
  229. div#twist_blogger_cntct_form span.message-bg {
  230.     background-color: #EBFFE8;
  231.     display: inline-block;
  232.     max-width: 400px;
  233.     line-height: 21px;
  234.     width: 100%;
  235.     color: #696969;
  236.     padding: 3px 5px;
  237.     box-sizing: border-box;
  238.     height: 30px;
  239.     border: 1px solid #E4E0E0;
  240.     padding-left: 39px;
  241.     margin: 0px 0px 4px;
  242. }
  243. div#twist_blogger_cntct_form span.message-bg:before {
  244.     content: '\f0e0';
  245.     background-color: #20CC00;
  246. }
  247. div#twist_blogger_cntct_form span.send-bg {
  248.     height: 32px;
  249.     display: inline-block;
  250.     float: left;
  251.     max-width: 45%;
  252.     width: 100%;
  253.     margin-top: 15px;
  254.     transition: all 0.4s ease-in-out !important;
  255. }
  256. div#twist_blogger_cntct_form span.send-bg:before {
  257.     content: '\f1d8';
  258.  }
  259. div#twist_blogger_cntct_form span.send-bg:before, div#twist_blogger_cntct_form span.clear-bg:before {
  260.     font-family: FontAwesome;
  261.     text-align: center;
  262.     font-weight: normal;
  263.     margin: 0;
  264.     background-color: #000;
  265.     padding: 0;
  266.     line-height: 27px;
  267.     width: 30px;
  268.     height: 30px;
  269.     display: inline-block;
  270.     position: absolute;
  271.     border: 1px solid #fff;
  272.     border-right: 0 !important;
  273.     color: #FFFFFF;
  274. }
  275. div#twist_blogger_cntct_form span.clear-bg {
  276.     display: inline-block;
  277.     float: right;
  278.     margin-top: 15px;
  279.     max-width: 45%;
  280.     width: 100%;
  281. }
  282. div#twist_blogger_cntct_form span.clear-bg:before {
  283.     content: '\f021';
  284.  }
  285.  
  286. input.contact-form-button.contact-form-button-submit.clear-button:hover {
  287.     background-color: #E83434 !important;
  288. }
  289. div#twist_blogger_cntct_form .clear-button {
  290.     color: #FFFFFF;
  291.     border: 1px solid #FFF !important;
  292.     background-color: #FF2C2C;
  293.     float: right;
  294.     display: table;
  295.     height: 32px;
  296. }
  297. </style>
  298. <div id="twist_blogger_cntct_form">
  299. <div class="wrap-me">
  300. <form name="contact-form">
  301. <span class='name-bg'>Your Name</span><br />
  302. <input class="contact-form-name" id="ContactForm1_contact-form-name" name="name" placeholder="Enter your name here..." size="30" type="text" value="" /><br />
  303. <br />
  304. <span class='email-bg'>Your Email*</span><br />
  305. <input class="contact-form-email" id="ContactForm1_contact-form-email" name="email" placeholder="Enter your email here..." size="30" type="text" value="" /><br />
  306. <br />
  307. <span class='message-bg'>Your Message*</span><br />
  308. <textarea class="contact-form-email-message" cols="25" id="ContactForm1_contact-form-email-message" name="email-message" placeholder="Write your message here..." rows="5"></textarea><br />
  309. <span class='send-bg'><input class="contact-form-button contact-form-button-submit" id="ContactForm1_contact-form-submit" type="button" value="Send" /></span>
  310. <span class='clear-bg'><input class='contact-form-button contact-form-button-submit clear-button' type='reset' value='Clear'/></span>
  311. <br />
  312. <div style="max-width: 100%; text-align: center; width: 100%;">
  313. <div class="contact-form-error-message" id="ContactForm1_contact-form-error-message">
  314. </div>
  315. <div class="contact-form-success-message" id="ContactForm1_contact-form-success-message">
  316. </div>
  317. </div>
  318. </form>
  319. <br />
  320. </div>
  321. </div>
  322.  
  323. 6. If you want to add elegant css to contact form, add this code to top page before <style>
  324.  
  325. <link href='http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.css' rel='stylesheet'/>
  326.  
  327.  DEMO CONTACT FORM
  328. <img class="lazy" src="https://1.bp.blogspot.com/-qDuUf3l6Ce0/Vd0Egabpo9I/AAAAAAAABYY/sLH59b0oKtE/s1600/Professional-Contact-Form-For-Blogger.PNG">
Advertisement
Add Comment
Please, Sign In to add comment