<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7404963637785269968</id><updated>2024-12-19T08:54:56.497+05:30</updated><category term="Css"/><category term="Html"/><category term="Example"/><category term="JavaScripts"/><category term="Form"/><category term="label"/><category term="Salider"/><category term="Search"/><category term="Contact Form"/><category term="Autocomple"/><category term="Buttons"/><category term="Checkout"/><category term="Clipboard"/><category term="Layout"/><category term="Map"/><category term="Multiple Steps"/><category term="Password"/><category term="Select Box"/><category term="Step Form"/><category term="Time and Date"/><title type='text'>Balrajuk</title><subtitle type='html'>Balrajuk</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default?start-index=26&amp;max-results=25'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-9149860760063957592</id><published>2021-04-17T22:49:00.001+05:30</published><updated>2021-04-17T22:49:19.403+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><category scheme="http://www.blogger.com/atom/ns#" term="Step Form"/><title type='text'>Wizard Multi Step Form</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht00cV44JvlsPiDTaFszKk759WKESFcGL2607LTLwbJ-kvoo2qsi4f9PkMJEsM0S5o62JXsFK8L9CrGwLPdpT-Sfu5a9NOEjqlD8JSuu003X4HV0dxtPaxzno-PiHyPNNg70CxEt_zfQfY/s1600/20180416_134236.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;457&quot; data-original-width=&quot;1033&quot; height=&quot;141&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht00cV44JvlsPiDTaFszKk759WKESFcGL2607LTLwbJ-kvoo2qsi4f9PkMJEsM0S5o62JXsFK8L9CrGwLPdpT-Sfu5a9NOEjqlD8JSuu003X4HV0dxtPaxzno-PiHyPNNg70CxEt_zfQfY/s320/20180416_134236.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Form Wizard Multi Step Form:&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&amp;gt;
&amp;lt;link href=&quot;https://fonts.googleapis.com/css?family=Raleway&quot; rel=&quot;stylesheet&quot;&amp;gt;
&amp;lt;style&amp;gt;
* {
&amp;nbsp; box-sizing: border-box;
}
body {
&amp;nbsp; background-color: #f1f1f1;
}
#regForm {
&amp;nbsp; background-color: #ffffff;
&amp;nbsp; margin: 100px auto;
&amp;nbsp; font-family: Raleway;
&amp;nbsp; padding: 40px;
&amp;nbsp; width: 70%;
&amp;nbsp; min-width: 300px;
}
h1 {
&amp;nbsp; text-align: center; 
}
input {
&amp;nbsp; padding: 10px;
&amp;nbsp; width: 100%;
&amp;nbsp; font-size: 17px;
&amp;nbsp; font-family: Raleway;
&amp;nbsp; border: 1px solid #aaaaaa;
}
/* Mark input boxes that gets an error on validation: */
input.invalid {
&amp;nbsp; background-color: #ffdddd;
}
/* Hide all steps by default: */
.tab {
&amp;nbsp; display: none;
}
button {
&amp;nbsp; background-color: #69B7E2;
&amp;nbsp; color: #ffffff;
&amp;nbsp; border: none;
&amp;nbsp; padding: 10px 20px;
&amp;nbsp; font-size: 17px;
&amp;nbsp; font-family: Raleway;
&amp;nbsp; cursor: pointer;
}
button:hover {
&amp;nbsp; opacity: 0.8;
}
#prevBtn {
&amp;nbsp; background-color: #bbbbbb;
}
/* Make circles that indicate the steps of the form: */
.step {
&amp;nbsp; height: 15px;
&amp;nbsp; width: 15px;
&amp;nbsp; margin: 0 2px;
&amp;nbsp; background-color: #bbbbbb;
&amp;nbsp; border: none; 
&amp;nbsp; border-radius: 50%;
&amp;nbsp; display: inline-block;
&amp;nbsp; opacity: 0.5;
}
.step.active {
&amp;nbsp; opacity: 1;
}
/* Mark the steps that are finished and valid: */
.step.finish {
&amp;nbsp; background-color: #4CAF50;
}
&amp;lt;/style&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;form id=&quot;regForm&quot; action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;lt;h1&amp;gt;Register:&amp;lt;/h1&amp;gt;
&amp;nbsp; &amp;lt;!-- One &quot;tab&quot; for each step in the form: --&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;tab&quot;&amp;gt;Name:
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;First name...&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;fname&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Last name...&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;lname&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;tab&quot;&amp;gt;Contact Info:
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;E-mail...&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;email&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Phone...&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;phone&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;tab&quot;&amp;gt;Birthday:
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;dd&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;dd&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;mm&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;nn&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;yyyy&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;yyyy&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;tab&quot;&amp;gt;Login Info:
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Username...&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;uname&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Password...&quot; oninput=&quot;this.className = &#39;&#39;&quot; name=&quot;pword&quot; type=&quot;password&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div style=&quot;overflow:auto;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div style=&quot;float:right;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; id=&quot;prevBtn&quot; onclick=&quot;nextPrev(-1)&quot;&amp;gt;Previous&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; id=&quot;nextBtn&quot; onclick=&quot;nextPrev(1)&quot;&amp;gt;Next&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;!-- Circles which indicates the steps of the form: --&amp;gt;
&amp;nbsp; &amp;lt;div style=&quot;text-align:center;margin-top:40px;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;script&amp;gt;
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the crurrent tab
function showTab(n) {
&amp;nbsp; // This function will display the specified tab of the form...
&amp;nbsp; var x = document.getElementsByClassName(&quot;tab&quot;);
&amp;nbsp; x[n].style.display = &quot;block&quot;;
&amp;nbsp; //... and fix the Previous/Next buttons:
&amp;nbsp; if (n == 0) {
&amp;nbsp; &amp;nbsp; document.getElementById(&quot;prevBtn&quot;).style.display = &quot;none&quot;;
&amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; document.getElementById(&quot;prevBtn&quot;).style.display = &quot;inline&quot;;
&amp;nbsp; }
&amp;nbsp; if (n == (x.length - 1)) {
&amp;nbsp; &amp;nbsp; document.getElementById(&quot;nextBtn&quot;).innerHTML = &quot;Submit&quot;;
&amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; document.getElementById(&quot;nextBtn&quot;).innerHTML = &quot;Next&quot;;
&amp;nbsp; }
&amp;nbsp; //... and run a function that will display the correct step indicator:
&amp;nbsp; fixStepIndicator(n)
}
function nextPrev(n) {
&amp;nbsp; // This function will figure out which tab to display
&amp;nbsp; var x = document.getElementsByClassName(&quot;tab&quot;);
&amp;nbsp; // Exit the function if any field in the current tab is invalid:
&amp;nbsp; if (n == 1 &amp;amp;&amp;amp; !validateForm()) return false;
&amp;nbsp; // Hide the current tab:
&amp;nbsp; x[currentTab].style.display = &quot;none&quot;;
&amp;nbsp; // Increase or decrease the current tab by 1:
&amp;nbsp; currentTab = currentTab + n;
&amp;nbsp; // if you have reached the end of the form...
&amp;nbsp; if (currentTab &amp;gt;= x.length) {
&amp;nbsp; &amp;nbsp; // ... the form gets submitted:
&amp;nbsp; &amp;nbsp; document.getElementById(&quot;regForm&quot;).submit();
&amp;nbsp; &amp;nbsp; return false;
&amp;nbsp; }
&amp;nbsp; // Otherwise, display the correct tab:
&amp;nbsp; showTab(currentTab);
}
function validateForm() {
&amp;nbsp; // This function deals with validation of the form fields
&amp;nbsp; var x, y, i, valid = true;
&amp;nbsp; x = document.getElementsByClassName(&quot;tab&quot;);
&amp;nbsp; y = x[currentTab].getElementsByTagName(&quot;input&quot;);
&amp;nbsp; // A loop that checks every input field in the current tab:
&amp;nbsp; for (i = 0; i &amp;lt; y.length; i++) {
&amp;nbsp; &amp;nbsp; // If a field is empty...
&amp;nbsp; &amp;nbsp; if (y[i].value == &quot;&quot;) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; // add an &quot;invalid&quot; class to the field:
&amp;nbsp; &amp;nbsp; &amp;nbsp; y[i].className += &quot; invalid&quot;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; // and set the current valid status to false
&amp;nbsp; &amp;nbsp; &amp;nbsp; valid = false;
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; // If the valid status is true, mark the step as finished and valid:
&amp;nbsp; if (valid) {
&amp;nbsp; &amp;nbsp; document.getElementsByClassName(&quot;step&quot;)[currentTab].className += &quot; finish&quot;;
&amp;nbsp; }
&amp;nbsp; return valid; // return the valid status
}
function fixStepIndicator(n) {
&amp;nbsp; // This function removes the &quot;active&quot; class of all steps...
&amp;nbsp; var i, x = document.getElementsByClassName(&quot;step&quot;);
&amp;nbsp; for (i = 0; i &amp;lt; x.length; i++) {
&amp;nbsp; &amp;nbsp; x[i].className = x[i].className.replace(&quot; active&quot;, &quot;&quot;);
&amp;nbsp; }
&amp;nbsp; //... and adds the &quot;active&quot; class on the current step:
&amp;nbsp; x[n].className += &quot; active&quot;;
}
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1)  HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;form id=&quot;regForm&quot; action=&quot;&quot;&amp;gt;
&amp;lt;h1&amp;gt;Register:&amp;lt;/h1&amp;gt;
&amp;lt;!-- One &quot;tab&quot; for each step in the form: --&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Name:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;First name...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Last name...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Contact Info:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;E-mail...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Phone...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Birthday:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;dd&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;mm&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;yyyy&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Login Info:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Username...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Password...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div style=&quot;overflow:auto;&quot;&amp;gt;
&amp;nbsp; &amp;lt;div style=&quot;float:right;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; id=&quot;prevBtn&quot; onclick=&quot;nextPrev(-1)&quot;&amp;gt;Previous&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; id=&quot;nextBtn&quot; onclick=&quot;nextPrev(1)&quot;&amp;gt;Next&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!-- Circles which indicates the steps of the form: --&amp;gt;
&amp;lt;div style=&quot;text-align:center;margin-top:40px;&quot;&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;/div&gt;
&amp;nbsp;  
&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;Style the form elements&lt;/b&gt;
&lt;br /&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2)  CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style the form */
#regForm {
  background-color: #ffffff;
  margin: 100px auto;
  padding: 40px;
  width: 70%;
  min-width: 300px;
}
/* Style the input fields */
input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  font-family: Raleway;
  border: 1px solid #aaaaaa;
}
/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}
/* Hide all steps by default: */
.tab {
  display: none;
}
/* Make circles that indicate the steps of the form: */
.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none; 
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}
/* Mark the active step: */
.step.active {
  opacity: 1;
}
/* Mark the steps that are finished and valid: */
.step.finish {
  background-color: #4CAF50;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3)  JAVASCRIPT&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;

var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab

function showTab(n) {
  // This function will display the specified tab of the form ...
  var x = document.getElementsByClassName(&quot;tab&quot;);
  x[n].style.display = &quot;block&quot;;
  // ... and fix the Previous/Next buttons:
  if (n == 0) {
    document.getElementById(&quot;prevBtn&quot;).style.display = &quot;none&quot;;
  } else {
    document.getElementById(&quot;prevBtn&quot;).style.display = &quot;inline&quot;;
  }
  if (n == (x.length - 1)) {
    document.getElementById(&quot;nextBtn&quot;).innerHTML = &quot;Submit&quot;;
  } else {
    document.getElementById(&quot;nextBtn&quot;).innerHTML = &quot;Next&quot;;
  }
  // ... and run a function that displays the correct step indicator:
  fixStepIndicator(n)
}

function nextPrev(n) {
  // This function will figure out which tab to display
  var x = document.getElementsByClassName(&quot;tab&quot;);
  // Exit the function if any field in the current tab is invalid:
  if (n == 1 &amp;amp;&amp;amp; !validateForm()) return false;
  // Hide the current tab:
  x[currentTab].style.display = &quot;none&quot;;
  // Increase or decrease the current tab by 1:
  currentTab = currentTab + n;
  // if you have reached the end of the form... :
  if (currentTab &amp;gt;= x.length) {
    //...the form gets submitted:
    document.getElementById(&quot;regForm&quot;).submit();
    return false;
  }
  // Otherwise, display the correct tab:
  showTab(currentTab);
}

function validateForm() {
  // This function deals with validation of the form fields
  var x, y, i, valid = true;
  x = document.getElementsByClassName(&quot;tab&quot;);
  y = x[currentTab].getElementsByTagName(&quot;input&quot;);
  // A loop that checks every input field in the current tab:
  for (i = 0; i &amp;lt; y.length; i++) {
    // If a field is empty...
    if (y[i].value == &quot;&quot;) {
      // add an &quot;invalid&quot; class to the field:
      y[i].className += &quot; invalid&quot;;
      // and set the current valid status to false:
      valid = false;
    }
  }
  // If the valid status is true, mark the step as finished and valid:
  if (valid) {
    document.getElementsByClassName(&quot;step&quot;)[currentTab].className += &quot; finish&quot;;
  }
  return valid; // return the valid status
}

function fixStepIndicator(n) {
  // This function removes the &quot;active&quot; class of all steps...
  var i, x = document.getElementsByClassName(&quot;step&quot;);
  for (i = 0; i &amp;lt; x.length; i++) {
    x[i].className = x[i].className.replace(&quot; active&quot;, &quot;&quot;);
  }
  //... and adds the &quot;active&quot; class to the current step:
  x[n].className += &quot; active&quot;;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/9149860760063957592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Wizard-Multi-Step-Form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/9149860760063957592'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/9149860760063957592'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Wizard-Multi-Step-Form.html' title='Wizard Multi Step Form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht00cV44JvlsPiDTaFszKk759WKESFcGL2607LTLwbJ-kvoo2qsi4f9PkMJEsM0S5o62JXsFK8L9CrGwLPdpT-Sfu5a9NOEjqlD8JSuu003X4HV0dxtPaxzno-PiHyPNNg70CxEt_zfQfY/s72-c/20180416_134236.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-3779170894312361677</id><published>2021-04-17T22:48:00.003+05:30</published><updated>2021-04-17T22:48:46.835+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><title type='text'>Examples in Every Chapter</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKm-q-ioPhhAyybWQTG-2_eXLqM4khPhjcOsk4E5g3nkf9po5AdgCDHGdcbrbs0dOrhlWtUqPidZXrtE3HMzlH3gQcE1o7wDC4c0QkOB3ZcwsLa1KvrnzxzB1aXMuSwEaQeSeJFZxkWnoP/s1600/PicsArt_04-10-11.49.41.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKm-q-ioPhhAyybWQTG-2_eXLqM4khPhjcOsk4E5g3nkf9po5AdgCDHGdcbrbs0dOrhlWtUqPidZXrtE3HMzlH3gQcE1o7wDC4c0QkOB3ZcwsLa1KvrnzxzB1aXMuSwEaQeSeJFZxkWnoP/s320/PicsArt_04-10-11.49.41.jpg&quot; width=&quot;320&quot; height=&quot;161&quot; data-original-width=&quot;899&quot; data-original-height=&quot;453&quot; /&gt;&lt;/a&gt;
&lt;p&gt;Examples in Every Chapter
In every chapter, you can edit the examples online, and click on a button to view the result.
&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div id=&quot;demo&quot;&amp;gt;
&amp;nbsp; &amp;lt;h2&amp;gt;Let AJAX change this text&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;lt;button type=&quot;button&quot; onclick=&quot;loadDoc()&quot;&amp;gt;Change Content&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp; 
&lt;p&gt;
The HTML page contains a &amp;lt;div&amp;gt; section and a &amp;lt;button&amp;gt;.
The &amp;lt;div&amp;gt; section is used to display information from a server.
The &amp;lt;button&amp;gt; calls a function (if it is clicked).
The function requests data from a web server and displays it:
&lt;/p&gt;
&amp;nbsp; 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) JAVASCRIPT&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
function loadDoc() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 &amp;&amp; this.status == 200) {
     document.getElementById(&quot;demo&quot;).innerHTML = this.responseText;
    }
  };
  xhttp.open(&quot;GET&quot;, &quot;ajax_info.txt&quot;, true);
  xhttp.send();
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/3779170894312361677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Examples-In-Every-Chapter.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3779170894312361677'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3779170894312361677'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Examples-In-Every-Chapter.html' title='Examples in Every Chapter'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKm-q-ioPhhAyybWQTG-2_eXLqM4khPhjcOsk4E5g3nkf9po5AdgCDHGdcbrbs0dOrhlWtUqPidZXrtE3HMzlH3gQcE1o7wDC4c0QkOB3ZcwsLa1KvrnzxzB1aXMuSwEaQeSeJFZxkWnoP/s72-c/PicsArt_04-10-11.49.41.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>United Kingdom</georss:featurename><georss:point>55.378051 -3.43597299999999</georss:point><georss:box>12.203021 -86.05316049999999 90 79.18121450000001</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-652972187446512215</id><published>2021-04-17T22:48:00.001+05:30</published><updated>2021-04-17T22:48:14.381+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><title type='text'>List Grid View Html</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjru0tiO7thw-mjdn5qgqSqnxhK1ZgLd0AAWKcZrKdWDcvFF9FUbDUcX3U9bGLRn2iy_E_IFHW3tkJYA55aiqHz1yRmL8WZ_vXAx_VpqsmzV7zJM5rltfUOby3uwX3hhWnpNXQ-f1ou0udx/s1600/PicsArt_04-17-07.09.35.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjru0tiO7thw-mjdn5qgqSqnxhK1ZgLd0AAWKcZrKdWDcvFF9FUbDUcX3U9bGLRn2iy_E_IFHW3tkJYA55aiqHz1yRmL8WZ_vXAx_VpqsmzV7zJM5rltfUOby3uwX3hhWnpNXQ-f1ou0udx/s320/PicsArt_04-17-07.09.35.jpg&quot; width=&quot;320&quot; height=&quot;240&quot; data-original-width=&quot;1024&quot; data-original-height=&quot;768&quot; /&gt;&lt;/a&gt;
&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!-- Load Font Awesome Icon Library --&amp;gt;
&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&quot;&amp;gt;
&amp;lt;!-- Buttons to choose list or grid view --&amp;gt;
&amp;lt;button onclick=&quot;listView()&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-bars&quot;&amp;gt;&amp;lt;/i&amp;gt; List&amp;lt;/button&amp;gt;
&amp;lt;button onclick=&quot;gridView()&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-th-large&quot;&amp;gt;&amp;lt;/i&amp;gt; Grid&amp;lt;/button&amp;gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;column&quot; style=&quot;background-color:#aaa;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Column 1&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;column&quot; style=&quot;background-color:#bbb;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Column 2&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;column&quot; style=&quot;background-color:#ccc;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Column 3&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;column&quot; style=&quot;background-color:#ddd;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Column 4&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2)  CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Create two equal columns that floats next to each other */
.column {
    float: left;
    width: 50%;
    padding: 10px;
}
/* Clear floats after the columns */
.row:after {
    content: &quot;&quot;;
    display: table;
    clear: both;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) JAVASCRIPT&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
// Get the elements with class=&quot;column&quot;
var elements = document.getElementsByClassName(&quot;column&quot;);
// Declare a loop variable
var i;
// List View
function listView() {
  for (i = 0; i &lt; elements.length; i++) {
    elements[i].style.width = &quot;100%&quot;;
  }
}
// Grid View
function gridView() {
  for (i = 0; i &lt; elements.length; i++) {
    elements[i].style.width = &quot;50%&quot;;
  }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/652972187446512215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/List-Grid-View-Html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/652972187446512215'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/652972187446512215'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/List-Grid-View-Html.html' title='List Grid View Html'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjru0tiO7thw-mjdn5qgqSqnxhK1ZgLd0AAWKcZrKdWDcvFF9FUbDUcX3U9bGLRn2iy_E_IFHW3tkJYA55aiqHz1yRmL8WZ_vXAx_VpqsmzV7zJM5rltfUOby3uwX3hhWnpNXQ-f1ou0udx/s72-c/PicsArt_04-17-07.09.35.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-6406123335984513863</id><published>2021-04-17T22:47:00.001+05:30</published><updated>2021-04-17T22:47:38.487+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="Map"/><title type='text'>Create a Contact and map</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoDet4pOxVKImQlRC9Li4WjOoxwOS8V84iYdkYGWaETFAvnDfdIA8bdciyJQIolT6rJxapjmudkE53-HWquMAyvO0X4xKzdHeobaJSrc3WECAQZf5QCstSl9C61S_XMwl4lM-zKW-XjOZd/s1600/PicsArt_04-17-07.04.00.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoDet4pOxVKImQlRC9Li4WjOoxwOS8V84iYdkYGWaETFAvnDfdIA8bdciyJQIolT6rJxapjmudkE53-HWquMAyvO0X4xKzdHeobaJSrc3WECAQZf5QCstSl9C61S_XMwl4lM-zKW-XjOZd/s320/PicsArt_04-17-07.04.00.jpg&quot; width=&quot;320&quot; height=&quot;240&quot; data-original-width=&quot;1024&quot; data-original-height=&quot;768&quot; /&gt;&lt;/a&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;div style=&quot;text-align:center&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Contact Us&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Swing by for a cup of coffee, or leave us a message:&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;column&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;map&quot; style=&quot;width:100%;height:500px&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;column&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;form action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;fname&quot;&amp;gt;First Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;fname&quot; name=&quot;firstname&quot; placeholder=&quot;Your name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;lname&quot;&amp;gt;Last Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;lname&quot; name=&quot;lastname&quot; placeholder=&quot;Your last name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;country&quot;&amp;gt;Country&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;select id=&quot;country&quot; name=&quot;country&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;australia&quot;&amp;gt;Australia&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;canada&quot;&amp;gt;Canada&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;usa&quot;&amp;gt;USA&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;subject&quot;&amp;gt;Subject&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textarea id=&quot;subject&quot; name=&quot;subject&quot; placeholder=&quot;Write something..&quot; style=&quot;height:170px&quot;&amp;gt;&amp;lt;/textarea&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!-- Initialize Google Maps --&amp;gt;
&amp;lt;script&amp;gt;
function myMap() {
&amp;nbsp; var myCenter = new google.maps.LatLng(51.508742,-0.120850);
&amp;nbsp; var mapCanvas = document.getElementById(&quot;map&quot;);
&amp;nbsp; var mapOptions = {center: myCenter, zoom: 12};
&amp;nbsp; var map = new google.maps.Map(mapCanvas, mapOptions);
&amp;nbsp; var marker = new google.maps.Marker({position:myCenter});
&amp;nbsp; marker.setMap(map);
}
&amp;lt;/script&amp;gt;
&amp;lt;script src=&quot;https://maps.googleapis.com/maps/api/js?key=AIzaSyBu-916DdpKAjTmJNIgngS6HL_kDIKU0aU&amp;amp;callback=myMap&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;!--
To use this code on your website, get a free API key from Google.
Read more at: https://www.balraj-uk.blogspot.com/graphics/google_maps_basic.asp
--&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp; 
&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
* {
    box-sizing: border-box;
}
/* Style inputs */
input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}
input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
}
input[type=submit]:hover {
    background-color: #45a049;
}
/* Style the container/contact section */
.container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 10px;
}
/* Create two columns that float next to eachother */
.column {
    float: left;
    width: 50%;
    margin-top: 6px;
    padding: 20px;
}
/* Clear floats after the columns */
.row:after {
    content: &quot;&quot;;
    display: table;
    clear: both;
}
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .column, input[type=submit] {
        width: 100%;
        margin-top: 0;
    }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/6406123335984513863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Create-Contact-And-Map.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/6406123335984513863'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/6406123335984513863'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Create-Contact-And-Map.html' title='Create a Contact and map'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoDet4pOxVKImQlRC9Li4WjOoxwOS8V84iYdkYGWaETFAvnDfdIA8bdciyJQIolT6rJxapjmudkE53-HWquMAyvO0X4xKzdHeobaJSrc3WECAQZf5QCstSl9C61S_XMwl4lM-zKW-XjOZd/s72-c/PicsArt_04-17-07.04.00.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-6321270760411975848</id><published>2021-04-17T22:46:00.003+05:30</published><updated>2021-04-17T22:46:55.205+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Contact Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Contact Form</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3gydv6s6HT06yiGimYPyJMWFN-7nU885-LTdTygtd5taWzOWKQdjnoVsFWGPJMqERYDvtvbNq7EHX_1d0KTwCJguldWnwURTy8BLftoqxpA1FCh-LZF7qdpOpHeXF17D7QK7LJhigExy/s1600/PicsArt_04-14-06.15.30.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3gydv6s6HT06yiGimYPyJMWFN-7nU885-LTdTygtd5taWzOWKQdjnoVsFWGPJMqERYDvtvbNq7EHX_1d0KTwCJguldWnwURTy8BLftoqxpA1FCh-LZF7qdpOpHeXF17D7QK7LJhigExy/s320/PicsArt_04-14-06.15.30.jpg&quot; width=&quot;320&quot; height=&quot;223&quot; data-original-width=&quot;959&quot; data-original-height=&quot;668&quot; /&gt;&lt;/a&gt;
&amp;nbsp; 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;form action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;fname&quot;&amp;gt;First Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;fname&quot; name=&quot;firstname&quot; placeholder=&quot;Your name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;lname&quot;&amp;gt;Last Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;lname&quot; name=&quot;lastname&quot; placeholder=&quot;Your last name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;country&quot;&amp;gt;Country&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;select id=&quot;country&quot; name=&quot;country&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;australia&quot;&amp;gt;Australia&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;canada&quot;&amp;gt;Canada&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;usa&quot;&amp;gt;USA&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;subject&quot;&amp;gt;Subject&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;textarea id=&quot;subject&quot; name=&quot;subject&quot; placeholder=&quot;Write something..&quot; style=&quot;height:200px&quot;&amp;gt;&amp;lt;/textarea&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp;  
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style inputs with type=&quot;text&quot;, select elements and textareas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */  
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}
/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    background-color: #45a049;
}
/* Add a background color and some padding around the form */
.container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/6321270760411975848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Contact-Form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/6321270760411975848'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/6321270760411975848'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Contact-Form.html' title='Contact Form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3gydv6s6HT06yiGimYPyJMWFN-7nU885-LTdTygtd5taWzOWKQdjnoVsFWGPJMqERYDvtvbNq7EHX_1d0KTwCJguldWnwURTy8BLftoqxpA1FCh-LZF7qdpOpHeXF17D7QK7LJhigExy/s72-c/PicsArt_04-14-06.15.30.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-8963956483877705073</id><published>2021-04-17T22:46:00.001+05:30</published><updated>2021-04-17T22:46:10.971+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Contact Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Contact Manually or Social Login Form</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgyieviWJr3QxdjFodnPEftD7myH-9lLdM7aeZJOXeEZK_HbzJGjmP1vR4zfXtrabEnI122B_iUm4cX0xL5dzKlpMxMLbxPhWwSwB8oUhPIZhUWzYiMEvDGckJcZ30HYUq132D4wzfc5Y/s1600/PicsArt_04-14-06.53.54.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgyieviWJr3QxdjFodnPEftD7myH-9lLdM7aeZJOXeEZK_HbzJGjmP1vR4zfXtrabEnI122B_iUm4cX0xL5dzKlpMxMLbxPhWwSwB8oUhPIZhUWzYiMEvDGckJcZ30HYUq132D4wzfc5Y/s320/PicsArt_04-14-06.53.54.jpg&quot; width=&quot;192&quot; height=&quot;320&quot; data-original-width=&quot;904&quot; data-original-height=&quot;1509&quot; /&gt;&lt;/a&gt;
&amp;nbsp; 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;form action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2 style=&quot;text-align:center&quot;&amp;gt;Login with Social Media or Manually&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;vl&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;vl-innertext&quot;&amp;gt;or&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;#&quot; class=&quot;fb btn&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-facebook fa-fw&quot;&amp;gt;&amp;lt;/i&amp;gt; Login with Facebook
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/a&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;#&quot; class=&quot;twitter btn&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-twitter fa-fw&quot;&amp;gt;&amp;lt;/i&amp;gt; Login with Twitter
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/a&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;#&quot; class=&quot;google btn&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-google fa-fw&quot;&amp;gt;&amp;lt;/i&amp;gt; Login with Google+
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/a&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;hide-md-lg&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Or sign in manually:&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; name=&quot;username&quot; placeholder=&quot;Username&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; name=&quot;password&quot; placeholder=&quot;Password&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Login&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;bottom-container&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;#&quot; style=&quot;color:white&quot; class=&quot;btn&quot;&amp;gt;Sign up&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;#&quot; style=&quot;color:white&quot; class=&quot;btn&quot;&amp;gt;Forgot password?&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp; 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
* {box-sizing: border-box}
/* style the container */
.container {
  position: relative;
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px 0 30px 0;
} 
/* style inputs and link buttons */
input,
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  margin: 5px 0;
  opacity: 0.85;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none; /* remove underline from anchors */
}
input:hover,
.btn:hover {
  opacity: 1;
}
/* add appropriate colors to fb, twitter and google buttons */
.fb {
  background-color: #3B5998;
  color: white;
}
.twitter {
  background-color: #55ACEE;
  color: white;
}
.google {
  background-color: #dd4b39;
  color: white;
}
/* style the submit button */
input[type=submit] {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}
input[type=submit]:hover {
  background-color: #45a049;
}
/* Two-column layout */
.col {
  float: left;
  width: 50%;
  margin: auto;
  padding: 0 50px;
  margin-top: 6px;
}
/* Clear floats after the columns */
.row:after {
  content: &quot;&quot;;
  display: table;
  clear: both;
}
/* vertical line */
.vl {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  border: 2px solid #ddd;
  height: 175px;
}
/* text inside the vertical line */
.inner {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 8px 10px;
}
/* hide some text on medium and large screens */
.hide-md-lg {
  display: none;
}
/* bottom container */
.bottom-container {
  text-align: center;
  background-color: #666;
  border-radius: 0px 0px 4px 4px;
}
/* Responsive layout - when the screen is less than 650px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 650px) {
  .col {
    width: 100%;
    margin-top: 0;
  }
  /* hide the vertical line */
  .vl {
    display: none;
  }
  /* show the hidden text on small screens */
  .hide-md-lg {
    display: block;
    text-align: center;
  }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/8963956483877705073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Contact-Manually-or-Social-Login-Form.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/8963956483877705073'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/8963956483877705073'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Contact-Manually-or-Social-Login-Form.html' title='Contact Manually or Social Login Form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgyieviWJr3QxdjFodnPEftD7myH-9lLdM7aeZJOXeEZK_HbzJGjmP1vR4zfXtrabEnI122B_iUm4cX0xL5dzKlpMxMLbxPhWwSwB8oUhPIZhUWzYiMEvDGckJcZ30HYUq132D4wzfc5Y/s72-c/PicsArt_04-14-06.53.54.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-7381162323262071274</id><published>2021-04-17T22:45:00.002+05:30</published><updated>2021-04-17T22:45:36.511+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><category scheme="http://www.blogger.com/atom/ns#" term="Select Box"/><title type='text'>Custom Select Box</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRs8fAcc-861E4LH6ovBsbkDFfQ1oX4k-72bWL3PskP4BchVIjGxSldR1AK4EAja3gjVFmJnZI9ZKI7qG4zspC_44ZdtvgWC5if-p14zzISdT8THs7e6d5s83eh5274_XU7jpSVtn34mWM/s1600/20180416_173433.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRs8fAcc-861E4LH6ovBsbkDFfQ1oX4k-72bWL3PskP4BchVIjGxSldR1AK4EAja3gjVFmJnZI9ZKI7qG4zspC_44ZdtvgWC5if-p14zzISdT8THs7e6d5s83eh5274_XU7jpSVtn34mWM/s320/20180416_173433.jpg&quot; width=&quot;320&quot; height=&quot;194&quot; data-original-width=&quot;958&quot; data-original-height=&quot;582&quot; /&gt;&lt;/a&gt;
    
&lt;blockquote&gt;&lt;b&gt;Create a Custom Select Menu&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;select&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;0&quot;&amp;gt;Select car:&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;1&quot;&amp;gt;Audi&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;2&quot;&amp;gt;BMW&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;3&quot;&amp;gt;Citroen&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;4&quot;&amp;gt;Ford&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;5&quot;&amp;gt;Honda&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;6&quot;&amp;gt;Jaguar&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;7&quot;&amp;gt;Land Rover&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;8&quot;&amp;gt;Mercedes&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;9&quot;&amp;gt;Mini&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;10&quot;&amp;gt;Nissan&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;11&quot;&amp;gt;Toyota&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;12&quot;&amp;gt;Volvo&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;/select&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  font-family: Arial;
}
.custom-select select {
  display: none; /*hide original SELECT element:*/
}
.select-selected {
  background-color: DodgerBlue;
}
/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: &quot;&quot;;
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}
/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}
/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}
/*style items (options):*/
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}
/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}
.select-items div:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
var x, i, j, selElmnt, a, b, c;
/*look for any elements with the class &quot;custom-select&quot;:*/
x = document.getElementsByClassName(&quot;custom-select&quot;);
for (i = 0; i &amp;lt; x.length; i++) {
  selElmnt = x[i].getElementsByTagName(&quot;select&quot;)[0];
  /*for each element, create a new DIV that will act as the selected item:*/
  a = document.createElement(&quot;DIV&quot;);
  a.setAttribute(&quot;class&quot;, &quot;select-selected&quot;);
  a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
  x[i].appendChild(a);
  /*for each element, create a new DIV that will contain the option list:*/
  b = document.createElement(&quot;DIV&quot;);
  b.setAttribute(&quot;class&quot;, &quot;select-items select-hide&quot;);
  for (j = 1; j &amp;lt; selElmnt.length; j++) {
    /*for each option in the original select element,
    create a new DIV that will act as an option item:*/
    c = document.createElement(&quot;DIV&quot;);
    c.innerHTML = selElmnt.options[j].innerHTML;
    c.addEventListener(&quot;click&quot;, function(e) {
        /*when an item is clicked, update the original select box,
        and the selected item:*/
        var i, s, h;
        s = this.parentNode.parentNode.getElementsByTagName(&quot;select&quot;)[0];
        h = this.parentNode.previousSibling;
        for (i = 0; i &amp;lt; s.length; i++) {
          if (s.options[i].innerHTML == this.innerHTML) {
            s.selectedIndex = i;
            h.innerHTML = this.innerHTML;
            break;
          }
        }
        h.click();
    });
    b.appendChild(c);
  }
  x[i].appendChild(b);
  a.addEventListener(&quot;click&quot;, function(e) {
      /*when the select box is clicked, close any other select boxes,
      and open/close the current select box:*/
      e.stopPropagation();
      closeAllSelect(this);
      this.nextSibling.classList.toggle(&quot;select-hide&quot;);
      this.classList.toggle(&quot;select-arrow-active&quot;);
  });
}
function closeAllSelect(elmnt) {
  /*a function that will close all select boxes in the document,
  except the current select box:*/
  var x, y, i, arrNo = [];
  x = document.getElementsByClassName(&quot;select-items&quot;);
  y = document.getElementsByClassName(&quot;select-selected&quot;);
  for (i = 0; i &amp;lt; y.length; i++) {
    if (elmnt == y[i]) {
      arrNo.push(i)
    } else {
      y[i].classList.remove(&quot;select-arrow-active&quot;);
    }
  }
  for (i = 0; i &amp;lt; x.length; i++) {
    if (arrNo.indexOf(i)) {
      x[i].classList.add(&quot;select-hide&quot;);
    }
  }
}
/*if the user clicks anywhere outside the select box,
then close all select boxes:*/
document.addEventListener(&quot;click&quot;, closeAllSelect);
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/7381162323262071274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Custom-Select-Box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/7381162323262071274'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/7381162323262071274'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Custom-Select-Box.html' title='Custom Select Box'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRs8fAcc-861E4LH6ovBsbkDFfQ1oX4k-72bWL3PskP4BchVIjGxSldR1AK4EAja3gjVFmJnZI9ZKI7qG4zspC_44ZdtvgWC5if-p14zzISdT8THs7e6d5s83eh5274_XU7jpSVtn34mWM/s72-c/20180416_173433.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-4130191195629129092</id><published>2021-04-17T22:45:00.000+05:30</published><updated>2021-04-17T22:45:01.682+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Autocomple"/><title type='text'>Autocomplete Form</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.balrajuk.blogspot.com/&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;479&quot; data-original-width=&quot;836&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9vO1njfaIVaLgnhKdfu6lcCm3DT0ytDmdOHSzCPw8WKNHEy9XlKA3JDBUhXZN6ix07eG0K75giAJ5qxfzcfwraXI__WPnqk5VUBGjTil0m8TPM-7xmmPWCvUvM90muJ8qhJtzjClToHC-/s320/PicsArt_03-31-03.44.14.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote&gt;&lt;b&gt;Create Autocomplete&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!--Make sure the form has the autocomplete function switched off:--&amp;gt;
&amp;lt;form autocomplete=&quot;off&quot; action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;autocomplete&quot; style=&quot;width:300px;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input id=&quot;myInput&quot; type=&quot;text&quot; name=&quot;myCountry&quot; placeholder=&quot;Country&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;input type=&quot;submit&quot;&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;


&lt;blockquote&gt;&lt;b&gt;An Array of all the countries in the world&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) JavaScript array&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
var countries = [&quot;Afghanistan&quot;,&quot;Albania&quot;,&quot;Algeria&quot;,&quot;Andorra&quot;,&quot;Angola&quot;,&quot;Anguilla&quot;,&quot;Antigua &amp;amp; Barbuda&quot;,&quot;Argentina&quot;,&quot;Armenia&quot;,&quot;Aruba&quot;,&quot;Australia&quot;,&quot;Austria&quot;,&quot;Azerbaijan&quot;,&quot;Bahamas&quot;,&quot;Bahrain&quot;,&quot;Bangladesh&quot;,&quot;Barbados&quot;,&quot;Belarus&quot;,&quot;Belgium&quot;,&quot;Belize&quot;,&quot;Benin&quot;,&quot;Bermuda&quot;,&quot;Bhutan&quot;,&quot;Bolivia&quot;,&quot;Bosnia &amp;amp; Herzegovina&quot;,&quot;Botswana&quot;,&quot;Brazil&quot;,&quot;British Virgin Islands&quot;,&quot;Brunei&quot;,&quot;Bulgaria&quot;,&quot;Burkina Faso&quot;,&quot;Burundi&quot;,&quot;Cambodia&quot;,&quot;Cameroon&quot;,&quot;Canada&quot;,&quot;Cape Verde&quot;,&quot;Cayman Islands&quot;,&quot;Central Arfrican Republic&quot;,&quot;Chad&quot;,&quot;Chile&quot;,&quot;China&quot;,&quot;Colombia&quot;,&quot;Congo&quot;,&quot;Cook Islands&quot;,&quot;Costa Rica&quot;,&quot;Cote D Ivoire&quot;,&quot;Croatia&quot;,&quot;Cuba&quot;,&quot;Curacao&quot;,&quot;Cyprus&quot;,&quot;Czech Republic&quot;,&quot;Denmark&quot;,&quot;Djibouti&quot;,&quot;Dominica&quot;,&quot;Dominican Republic&quot;,&quot;Ecuador&quot;,&quot;Egypt&quot;,&quot;El Salvador&quot;,&quot;Equatorial Guinea&quot;,&quot;Eritrea&quot;,&quot;Estonia&quot;,&quot;Ethiopia&quot;,&quot;Falkland Islands&quot;,&quot;Faroe Islands&quot;,&quot;Fiji&quot;,&quot;Finland&quot;,&quot;France&quot;,&quot;French Polynesia&quot;,&quot;French West Indies&quot;,&quot;Gabon&quot;,&quot;Gambia&quot;,&quot;Georgia&quot;,&quot;Germany&quot;,&quot;Ghana&quot;,&quot;Gibraltar&quot;,&quot;Greece&quot;,&quot;Greenland&quot;,&quot;Grenada&quot;,&quot;Guam&quot;,&quot;Guatemala&quot;,&quot;Guernsey&quot;,&quot;Guinea&quot;,&quot;Guinea Bissau&quot;,&quot;Guyana&quot;,&quot;Haiti&quot;,&quot;Honduras&quot;,&quot;Hong Kong&quot;,&quot;Hungary&quot;,&quot;Iceland&quot;,&quot;India&quot;,&quot;Indonesia&quot;,&quot;Iran&quot;,&quot;Iraq&quot;,&quot;Ireland&quot;,&quot;Isle of Man&quot;,&quot;Israel&quot;,&quot;Italy&quot;,&quot;Jamaica&quot;,&quot;Japan&quot;,&quot;Jersey&quot;,&quot;Jordan&quot;,&quot;Kazakhstan&quot;,&quot;Kenya&quot;,&quot;Kiribati&quot;,&quot;Kosovo&quot;,&quot;Kuwait&quot;,&quot;Kyrgyzstan&quot;,&quot;Laos&quot;,&quot;Latvia&quot;,&quot;Lebanon&quot;,&quot;Lesotho&quot;,&quot;Liberia&quot;,&quot;Libya&quot;,&quot;Liechtenstein&quot;,&quot;Lithuania&quot;,&quot;Luxembourg&quot;,&quot;Macau&quot;,&quot;Macedonia&quot;,&quot;Madagascar&quot;,&quot;Malawi&quot;,&quot;Malaysia&quot;,&quot;Maldives&quot;,&quot;Mali&quot;,&quot;Malta&quot;,&quot;Marshall Islands&quot;,&quot;Mauritania&quot;,&quot;Mauritius&quot;,&quot;Mexico&quot;,&quot;Micronesia&quot;,&quot;Moldova&quot;,&quot;Monaco&quot;,&quot;Mongolia&quot;,&quot;Montenegro&quot;,&quot;Montserrat&quot;,&quot;Morocco&quot;,&quot;Mozambique&quot;,&quot;Myanmar&quot;,&quot;Namibia&quot;,&quot;Nauro&quot;,&quot;Nepal&quot;,&quot;Netherlands&quot;,&quot;Netherlands Antilles&quot;,&quot;New Caledonia&quot;,&quot;New Zealand&quot;,&quot;Nicaragua&quot;,&quot;Niger&quot;,&quot;Nigeria&quot;,&quot;North Korea&quot;,&quot;Norway&quot;,&quot;Oman&quot;,&quot;Pakistan&quot;,&quot;Palau&quot;,&quot;Palestine&quot;,&quot;Panama&quot;,&quot;Papua New Guinea&quot;,&quot;Paraguay&quot;,&quot;Peru&quot;,&quot;Philippines&quot;,&quot;Poland&quot;,&quot;Portugal&quot;,&quot;Puerto Rico&quot;,&quot;Qatar&quot;,&quot;Reunion&quot;,&quot;Romania&quot;,&quot;Russia&quot;,&quot;Rwanda&quot;,&quot;Saint Pierre &amp;amp; Miquelon&quot;,&quot;Samoa&quot;,&quot;San Marino&quot;,&quot;Sao Tome and Principe&quot;,&quot;Saudi Arabia&quot;,&quot;Senegal&quot;,&quot;Serbia&quot;,&quot;Seychelles&quot;,&quot;Sierra Leone&quot;,&quot;Singapore&quot;,&quot;Slovakia&quot;,&quot;Slovenia&quot;,&quot;Solomon Islands&quot;,&quot;Somalia&quot;,&quot;South Africa&quot;,&quot;South Korea&quot;,&quot;South Sudan&quot;,&quot;Spain&quot;,&quot;Sri Lanka&quot;,&quot;St Kitts &amp;amp; Nevis&quot;,&quot;St Lucia&quot;,&quot;St Vincent&quot;,&quot;Sudan&quot;,&quot;Suriname&quot;,&quot;Swaziland&quot;,&quot;Sweden&quot;,&quot;Switzerland&quot;,&quot;Syria&quot;,&quot;Taiwan&quot;,&quot;Tajikistan&quot;,&quot;Tanzania&quot;,&quot;Thailand&quot;,&quot;Timor L&#39;Este&quot;,&quot;Togo&quot;,&quot;Tonga&quot;,&quot;Trinidad &amp;amp; Tobago&quot;,&quot;Tunisia&quot;,&quot;Turkey&quot;,&quot;Turkmenistan&quot;,&quot;Turks &amp;amp; Caicos&quot;,&quot;Tuvalu&quot;,&quot;Uganda&quot;,&quot;Ukraine&quot;,&quot;United Arab Emirates&quot;,&quot;United Kingdom&quot;,&quot;United States of America&quot;,&quot;Uruguay&quot;,&quot;Uzbekistan&quot;,&quot;Vanuatu&quot;,&quot;Vatican City&quot;,&quot;Venezuela&quot;,&quot;Vietnam&quot;,&quot;Virgin Islands (US)&quot;,&quot;Yemen&quot;,&quot;Zambia&quot;,&quot;Zimbabwe&quot;];
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

  
&lt;blockquote&gt;&lt;b&gt;The container must have a &quot;relative&quot; positioning.&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
* { box-sizing: border-box; }
body {
  font: 16px Arial; 
}
.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
}
input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 10px;
  font-size: 16px;
}
input[type=text] {
  background-color: #f1f1f1;
  width: 100%;
}
input[type=submit] {
  background-color: DodgerBlue;
  color: #fff;
}
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9; 
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

  
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (4) JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
function autocomplete(inp, arr) {
  /*the autocomplete function takes two arguments,
  the text field element and an array of possible autocompleted values:*/
  var currentFocus;
  /*execute a function when someone writes in the text field:*/
  inp.addEventListener(&quot;input&quot;, function(e) {
      var a, b, i, val = this.value;
      /*close any already open lists of autocompleted values*/
      closeAllLists();
      if (!val) { return false;}
      currentFocus = -1;
      /*create a DIV element that will contain the items (values):*/
      a = document.createElement(&quot;DIV&quot;);
      a.setAttribute(&quot;id&quot;, this.id + &quot;autocomplete-list&quot;);
      a.setAttribute(&quot;class&quot;, &quot;autocomplete-items&quot;);
      /*append the DIV element as a child of the autocomplete container:*/
      this.parentNode.appendChild(a);
      /*for each item in the array...*/
      for (i = 0; i &lt; arr.length; i++) {
        /*check if the item starts with the same letters as the text field value:*/
        if (arr[i].substr(0, val.length).toUpperCase() == val.toUpperCase()) {
          /*create a DIV element for each matching element:*/
          b = document.createElement(&quot;DIV&quot;);
          /*make the matching letters bold:*/
          b.innerHTML = &quot;&lt;strong&gt;&quot; + arr[i].substr(0, val.length) + &quot;&lt;/strong&gt;&quot;;
          b.innerHTML += arr[i].substr(val.length);
          /*insert a input field that will hold the current array item&#39;s value:*/
          b.innerHTML += &quot;&lt;input type=&#39;hidden&#39; value=&#39;&quot; + arr[i] + &quot;&#39;&gt;&quot;;
          /*execute a function when someone clicks on the item value (DIV element):*/
              b.addEventListener(&quot;click&quot;, function(e) {
              /*insert the value for the autocomplete text field:*/
              inp.value = this.getElementsByTagName(&quot;input&quot;)[0].value;
              /*close the list of autocompleted values,
              (or any other open lists of autocompleted values:*/
              closeAllLists();
          });
          a.appendChild(b);
        }
      }
  });
  /*execute a function presses a key on the keyboard:*/
  inp.addEventListener(&quot;keydown&quot;, function(e) {
      var x = document.getElementById(this.id + &quot;autocomplete-list&quot;);
      if (x) x = x.getElementsByTagName(&quot;div&quot;);
      if (e.keyCode == 40) {
        /*If the arrow DOWN key is pressed,
        increase the currentFocus variable:*/
        currentFocus++;
        /*and and make the current item more visible:*/
        addActive(x);
      } else if (e.keyCode == 38) { //up
        /*If the arrow UP key is pressed,
        decrease the currentFocus variable:*/
        currentFocus--;
        /*and and make the current item more visible:*/
        addActive(x);
      } else if (e.keyCode == 13) {
        /*If the ENTER key is pressed, prevent the form from being submitted,*/
        e.preventDefault();
        if (currentFocus &gt; -1) {
          /*and simulate a click on the &quot;active&quot; item:*/
          if (x) x[currentFocus].click();
        }
      }
  });
  function addActive(x) {
    /*a function to classify an item as &quot;active&quot;:*/
    if (!x) return false;
    /*start by removing the &quot;active&quot; class on all items:*/
    removeActive(x);
    if (currentFocus &gt;= x.length) currentFocus = 0;
    if (currentFocus &lt; 0) currentFocus = (x.length - 1);
    /*add class &quot;autocomplete-active&quot;:*/
    x[currentFocus].classList.add(&quot;autocomplete-active&quot;);
  }
  function removeActive(x) {
    /*a function to remove the &quot;active&quot; class from all autocomplete items:*/
    for (var i = 0; i &lt; x.length; i++) {
      x[i].classList.remove(&quot;autocomplete-active&quot;);
    }
  }
  function closeAllLists(elmnt) {
    /*close all autocomplete lists in the document,
    except the one passed as an argument:*/
    var x = document.getElementsByClassName(&quot;autocomplete-items&quot;);
    for (var i = 0; i &lt; x.length; i++) {
      if (elmnt != x[i] &amp;&amp; elmnt != inp) {
      x[i].parentNode.removeChild(x[i]);
    }
  }
}
/*execute a function when someone clicks in the document:*/
document.addEventListener(&quot;click&quot;, function (e) {
    closeAllLists(e.target);
});
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/4130191195629129092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Autocomplete-Form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/4130191195629129092'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/4130191195629129092'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Autocomplete-Form.html' title='Autocomplete Form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9vO1njfaIVaLgnhKdfu6lcCm3DT0ytDmdOHSzCPw8WKNHEy9XlKA3JDBUhXZN6ix07eG0K75giAJ5qxfzcfwraXI__WPnqk5VUBGjTil0m8TPM-7xmmPWCvUvM90muJ8qhJtzjClToHC-/s72-c/PicsArt_03-31-03.44.14.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-3003032614946535527</id><published>2021-04-17T22:44:00.001+05:30</published><updated>2021-04-17T22:44:27.321+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Search"/><title type='text'>Filter Search List</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.balrajuk.blogspot.com/&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;601&quot; data-original-width=&quot;1080&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipgFtowrr6f-Gin8kz_QFJ7dIzO88vETYknZAcUyPpF_YfCzAmpJajRFlsVfPiRg8YJGw0O_3bSxXNw_BpckXIEIResiswXVOdOH6T1fKxZeixgkA7PSDO_mvT6mM8wlZ4yyByqNNpNEdN/s320/PicsArt_03-31-04.44.14.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2&gt;
Create A Search List&lt;/h2&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;input type=&quot;text&quot; id=&quot;myInput&quot; onkeyup=&quot;myFunction()&quot; placeholder=&quot;Search for names..&quot;&amp;gt;
&amp;lt;ul id=&quot;myUL&quot;&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Adele&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Agnes&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Billy&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Bob&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Calvin&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Christina&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Cindy&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;&lt;p&gt;
Note: We use href=&quot;#&quot; in this demo since we do not have a page to link it to. In real life this should be a real URL to a specific page.
&lt;/p&gt;
&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
#myInput {
    background-image: url(&#39;/css/searchicon.png&#39;); /* Add a search icon to input */
    background-position: 10px 12px; /* Position the search icon */
    background-repeat: no-repeat; /* Do not repeat the icon image */
    width: 100%; /* Full-width */
    font-size: 16px; /* Increase font-size */
    padding: 12px 20px 12px 40px; /* Add some padding */
    border: 1px solid #ddd; /* Add a grey border */
    margin-bottom: 12px; /* Add some space below the input */
}

#myUL {
    /* Remove default list styling */
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#myUL li a {
    border: 1px solid #ddd; /* Add a border to all links */
    margin-top: -1px; /* Prevent double borders */
    background-color: #f6f6f6; /* Grey background color */
    padding: 12px; /* Add some padding */
    text-decoration: none; /* Remove default text underline */
    font-size: 18px; /* Increase the font-size */
    color: black; /* Add a black text color */
    display: block; /* Make it into a block element to fill the whole list */
}

#myUL li a:hover:not(.header) {
    background-color: #eee; /* Add a hover effect to all links, except for headers */
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;script&amp;gt;
function myFunction() {
&amp;nbsp; &amp;nbsp; // Declare variables
&amp;nbsp; &amp;nbsp; var input, filter, ul, li, a, i;
&amp;nbsp; &amp;nbsp; input = document.getElementById(&#39;myInput&#39;);
&amp;nbsp; &amp;nbsp; filter = input.value.toUpperCase();
&amp;nbsp; &amp;nbsp; ul = document.getElementById(&quot;myUL&quot;);
&amp;nbsp; &amp;nbsp; li = ul.getElementsByTagName(&#39;li&#39;);
&amp;nbsp; &amp;nbsp; // Loop through all list items, and hide those who don&#39;t match the search query
&amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; li.length; i++) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a = li[i].getElementsByTagName(&quot;a&quot;)[0];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (a.innerHTML.toUpperCase().indexOf(filter) &amp;gt; -1) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; li[i].style.display = &quot;&quot;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; li[i].style.display = &quot;none&quot;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/3003032614946535527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Filter-Search-List.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3003032614946535527'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3003032614946535527'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Filter-Search-List.html' title='Filter Search List'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipgFtowrr6f-Gin8kz_QFJ7dIzO88vETYknZAcUyPpF_YfCzAmpJajRFlsVfPiRg8YJGw0O_3bSxXNw_BpckXIEIResiswXVOdOH6T1fKxZeixgkA7PSDO_mvT6mM8wlZ4yyByqNNpNEdN/s72-c/PicsArt_03-31-04.44.14.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-6099619483896855158</id><published>2021-04-17T22:43:00.003+05:30</published><updated>2021-04-17T22:43:49.709+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Buttons"/><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Toggle Switch Button</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.balrajuk.blogspot.com/&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;226&quot; data-original-width=&quot;599&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXUUNrhU8c32koaX0Eu_LIabnTavNHL2oQd1WGtYY4nyFGPHsAtSGIDwa0rel3tGoitGSt8dR9NBjOSt60ThmWA9cxWRnlNInLET7wDmYg3_Q3DQPT6jra54ZAF6JoVIIP39amRjij0Q0v/s320/PicsArt_03-31-02.01.19.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  
&lt;blockquote&gt;&lt;b&gt;Create a Toggle Switch Buttons&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!-- Rectangular switch --&amp;gt;
&amp;lt;label class=&quot;switch&quot;&amp;gt;
&amp;nbsp; &amp;lt;input type=&quot;checkbox&quot;&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;slider&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/label&amp;gt;
&amp;lt;!-- Rounded switch --&amp;gt;
&amp;lt;label class=&quot;switch&quot;&amp;gt;
&amp;nbsp; &amp;lt;input type=&quot;checkbox&quot;&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;slider round&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/label&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: &quot;&quot;;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/6099619483896855158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Toggle-Switch-Button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/6099619483896855158'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/6099619483896855158'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Toggle-Switch-Button.html' title='Toggle Switch Button'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXUUNrhU8c32koaX0Eu_LIabnTavNHL2oQd1WGtYY4nyFGPHsAtSGIDwa0rel3tGoitGSt8dR9NBjOSt60ThmWA9cxWRnlNInLET7wDmYg3_Q3DQPT6jra54ZAF6JoVIIP39amRjij0Q0v/s72-c/PicsArt_03-31-02.01.19.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-2335731876415921927</id><published>2021-04-17T22:43:00.001+05:30</published><updated>2021-04-17T22:43:11.468+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><category scheme="http://www.blogger.com/atom/ns#" term="Multiple Steps"/><title type='text'>Form with Multiple Steps</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqow_3CDRKnCY8_ghrZDOaJF2N7M8NVIxSZqKMDrTjzhpbdTxD7yoZ0RT7luciksPFlI6r6UwiIonI2CNwuliafv8vAVdAIBSptgP-oAW_k077TlQvfKZ8B7vLyjpt6NtFYURl17jlUr4/s1600/20180416_134236.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqow_3CDRKnCY8_ghrZDOaJF2N7M8NVIxSZqKMDrTjzhpbdTxD7yoZ0RT7luciksPFlI6r6UwiIonI2CNwuliafv8vAVdAIBSptgP-oAW_k077TlQvfKZ8B7vLyjpt6NtFYURl17jlUr4/s320/20180416_134236.jpg&quot; width=&quot;320&quot; height=&quot;142&quot; data-original-width=&quot;1033&quot; data-original-height=&quot;457&quot; /&gt;&lt;/a&gt;
  &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;&lt;b&gt;Multi Step Form:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;form id=&quot;regForm&quot; action=&quot;&quot;&amp;gt;
&amp;lt;h1&amp;gt;Register:&amp;lt;/h1&amp;gt;
&amp;lt;!-- One &quot;tab&quot; for each step in the form: --&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Name:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;First name...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Last name...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Contact Info:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;E-mail...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Phone...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Birthday:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;dd&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;mm&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;yyyy&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;tab&quot;&amp;gt;Login Info:
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Username...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input placeholder=&quot;Password...&quot; oninput=&quot;this.className = &#39;&#39;&quot;&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div style=&quot;overflow:auto;&quot;&amp;gt;
&amp;nbsp; &amp;lt;div style=&quot;float:right;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; id=&quot;prevBtn&quot; onclick=&quot;nextPrev(-1)&quot;&amp;gt;Previous&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; id=&quot;nextBtn&quot; onclick=&quot;nextPrev(1)&quot;&amp;gt;Next&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!-- Circles which indicates the steps of the form: --&amp;gt;
&amp;lt;div style=&quot;text-align:center;margin-top:40px;&quot;&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;step&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

  
&lt;blockquote&gt;&lt;b&gt;Style the form elements:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style the form */
#regForm {
  background-color: #ffffff;
  margin: 100px auto;
  padding: 40px;
  width: 70%;
  min-width: 300px;
}
/* Style the input fields */
input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  font-family: Raleway;
  border: 1px solid #aaaaaa;
}
/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}
/* Hide all steps by default: */
.tab {
  display: none;
}
/* Make circles that indicate the steps of the form: */
.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none; 
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}
/* Mark the active step: */
.step.active {
  opacity: 1;
}
/* Mark the steps that are finished and valid: */
.step.finish {
  background-color: #4CAF50;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab

function showTab(n) {
  // This function will display the specified tab of the form ...
  var x = document.getElementsByClassName(&quot;tab&quot;);
  x[n].style.display = &quot;block&quot;;
  // ... and fix the Previous/Next buttons:
  if (n == 0) {
    document.getElementById(&quot;prevBtn&quot;).style.display = &quot;none&quot;;
  } else {
    document.getElementById(&quot;prevBtn&quot;).style.display = &quot;inline&quot;;
  }
  if (n == (x.length - 1)) {
    document.getElementById(&quot;nextBtn&quot;).innerHTML = &quot;Submit&quot;;
  } else {
    document.getElementById(&quot;nextBtn&quot;).innerHTML = &quot;Next&quot;;
  }
  // ... and run a function that displays the correct step indicator:
  fixStepIndicator(n)
}

function nextPrev(n) {
  // This function will figure out which tab to display
  var x = document.getElementsByClassName(&quot;tab&quot;);
  // Exit the function if any field in the current tab is invalid:
  if (n == 1 &amp;&amp; !validateForm()) return false;
  // Hide the current tab:
  x[currentTab].style.display = &quot;none&quot;;
  // Increase or decrease the current tab by 1:
  currentTab = currentTab + n;
  // if you have reached the end of the form... :
  if (currentTab &gt;= x.length) {
    //...the form gets submitted:
    document.getElementById(&quot;regForm&quot;).submit();
    return false;
  }
  // Otherwise, display the correct tab:
  showTab(currentTab);
}

function validateForm() {
  // This function deals with validation of the form fields
  var x, y, i, valid = true;
  x = document.getElementsByClassName(&quot;tab&quot;);
  y = x[currentTab].getElementsByTagName(&quot;input&quot;);
  // A loop that checks every input field in the current tab:
  for (i = 0; i &lt; y.length; i++) {
    // If a field is empty...
    if (y[i].value == &quot;&quot;) {
      // add an &quot;invalid&quot; class to the field:
      y[i].className += &quot; invalid&quot;;
      // and set the current valid status to false:
      valid = false;
    }
  }
  // If the valid status is true, mark the step as finished and valid:
  if (valid) {
    document.getElementsByClassName(&quot;step&quot;)[currentTab].className += &quot; finish&quot;;
  }
  return valid; // return the valid status
}

function fixStepIndicator(n) {
  // This function removes the &quot;active&quot; class of all steps...
  var i, x = document.getElementsByClassName(&quot;step&quot;);
  for (i = 0; i &lt; x.length; i++) {
    x[i].className = x[i].className.replace(&quot; active&quot;, &quot;&quot;);
  }
  //... and adds the &quot;active&quot; class to the current step:
  x[n].className += &quot; active&quot;;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/2335731876415921927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Form-With-Multiple-Steps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/2335731876415921927'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/2335731876415921927'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Form-With-Multiple-Steps.html' title='Form with Multiple Steps'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqow_3CDRKnCY8_ghrZDOaJF2N7M8NVIxSZqKMDrTjzhpbdTxD7yoZ0RT7luciksPFlI6r6UwiIonI2CNwuliafv8vAVdAIBSptgP-oAW_k077TlQvfKZ8B7vLyjpt6NtFYURl17jlUr4/s72-c/20180416_134236.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-3424545325583984879</id><published>2021-04-17T22:42:00.001+05:30</published><updated>2021-04-17T22:42:35.822+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><category scheme="http://www.blogger.com/atom/ns#" term="Password"/><title type='text'>Password Validation</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiZ45IUn4US2T5w2dOMiipXHXwgVNuBTw3n_MN5HmKPlEuM-0LR6rXEj0bR11c3HlZ9hwbvcr6PqJU-xERpTFYQjK5zAand3lX5oNGoFiwbXeBjZxLfN3lclVAMnXNgiDJLO1od94_45Y8/s1600/20180416_152205.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiZ45IUn4US2T5w2dOMiipXHXwgVNuBTw3n_MN5HmKPlEuM-0LR6rXEj0bR11c3HlZ9hwbvcr6PqJU-xERpTFYQjK5zAand3lX5oNGoFiwbXeBjZxLfN3lclVAMnXNgiDJLO1od94_45Y8/s320/20180416_152205.jpg&quot; width=&quot;320&quot; height=&quot;186&quot; data-original-width=&quot;959&quot; data-original-height=&quot;557&quot; /&gt;&lt;/a&gt;
  
&lt;blockquote&gt;&lt;b&gt;Password Validation Form&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;form action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;usrname&quot;&amp;gt;Username&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;usrname&quot; name=&quot;usrname&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw&quot;&amp;gt;Password&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;lt; &amp;nbsp;input type=&quot;password&quot; id=&quot;psw&quot; name=&quot;psw&quot; pattern=&quot;(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}&quot; title=&quot;Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;message&quot;&amp;gt;
&amp;nbsp; &amp;lt;h3&amp;gt;Password must contain the following:&amp;lt;/h3&amp;gt;
&amp;nbsp; &amp;lt;p id=&quot;letter&quot; class=&quot;invalid&quot;&amp;gt;A &amp;lt;b&amp;gt;lowercase&amp;lt;/b&amp;gt; letter&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p id=&quot;capital&quot; class=&quot;invalid&quot;&amp;gt;A &amp;lt;b&amp;gt;capital (uppercase)&amp;lt;/b&amp;gt; letter&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p id=&quot;number&quot; class=&quot;invalid&quot;&amp;gt;A &amp;lt;b&amp;gt;number&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;p id=&quot;length&quot; class=&quot;invalid&quot;&amp;gt;Minimum &amp;lt;b&amp;gt;8 characters&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;&lt;b&gt;Note: We use the pattern attribute (with a regular expression) inside the password field to set a restriction for submitting the form: it must contain 8 or more characters that are of at least one number, and one uppercase and lowercase letter.&lt;/b&gt;
&lt;/blockquote&gt;
  
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;&lt;b&gt;Style the input fields and the message box:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style all input fields */
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
}
/* Style the submit button */
input[type=submit] {
    background-color: #4CAF50;
    color: white;
}
/* Style the container for inputs */
.container {
    background-color: #f1f1f1;
    padding: 20px;
}
/* The message box is shown when the user clicks on the password field */
#message {
    display:none;
    background: #f1f1f1;
    color: #000;
    position: relative;
    padding: 20px;
    margin-top: 10px;
}
#message p {
    padding: 10px 35px;
    font-size: 18px;
}
/* Add a green text color and a checkmark when the requirements are right */
.valid {
    color: green;
}
.valid:before {
    position: relative;
    left: -35px;
    content: &quot;&amp;#10004;&quot;;
}
/* Add a red text color and an &quot;x&quot; icon when the requirements are wrong */
.invalid {
    color: red;
}
.invalid:before {
    position: relative;
    left: -35px;
    content: &quot;&amp;#10006;&quot;;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;script&amp;gt;
var myInput = document.getElementById(&quot;psw&quot;);
var letter = document.getElementById(&quot;letter&quot;);
var capital = document.getElementById(&quot;capital&quot;);
var number = document.getElementById(&quot;number&quot;);
var length = document.getElementById(&quot;length&quot;);
// When the user clicks on the password field, show the message box
myInput.onfocus = function() {
&amp;nbsp; document.getElementById(&quot;message&quot;).style.display = &quot;block&quot;;
}
// When the user clicks outside of the password field, hide the message box
myInput.onblur = function() {
&amp;nbsp; document.getElementById(&quot;message&quot;).style.display = &quot;none&quot;;
}
// When the user starts to type something inside the password field
myInput.onkeyup = function() {
&amp;nbsp; // Validate lowercase letters
&amp;nbsp; var lowerCaseLetters = /[a-z]/g;
&amp;nbsp; if(myInput.value.match(lowerCaseLetters)) {
&amp;nbsp; &amp;nbsp; letter.classList.remove(&quot;invalid&quot;);
&amp;nbsp; &amp;nbsp; letter.classList.add(&quot;valid&quot;);
&amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; letter.classList.remove(&quot;valid&quot;);
&amp;nbsp; &amp;nbsp; letter.classList.add(&quot;invalid&quot;);
}
&amp;nbsp; // Validate capital letters
&amp;nbsp; var upperCaseLetters = /[A-Z]/g;
&amp;nbsp; if(myInput.value.match(upperCaseLetters)) {
&amp;nbsp; &amp;nbsp; capital.classList.remove(&quot;invalid&quot;);
&amp;nbsp; &amp;nbsp; capital.classList.add(&quot;valid&quot;);
&amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; capital.classList.remove(&quot;valid&quot;);
&amp;nbsp; &amp;nbsp; capital.classList.add(&quot;invalid&quot;);
&amp;nbsp; }
&amp;nbsp; // Validate numbers
&amp;nbsp; var numbers = /[0-9]/g;
&amp;nbsp; if(myInput.value.match(numbers)) {
&amp;nbsp; &amp;nbsp; number.classList.remove(&quot;invalid&quot;);
&amp;nbsp; &amp;nbsp; number.classList.add(&quot;valid&quot;);
&amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; number.classList.remove(&quot;valid&quot;);
&amp;nbsp; &amp;nbsp; number.classList.add(&quot;invalid&quot;);
&amp;nbsp; }
&amp;nbsp; // Validate length
&amp;nbsp; if(myInput.value.length &amp;gt;= 8) {
&amp;nbsp; &amp;nbsp; length.classList.remove(&quot;invalid&quot;);
&amp;nbsp; &amp;nbsp; length.classList.add(&quot;valid&quot;);
&amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; length.classList.remove(&quot;valid&quot;);
&amp;nbsp; &amp;nbsp; length.classList.add(&quot;invalid&quot;);
&amp;nbsp; }
&amp;lt;/script&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;





</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/3424545325583984879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Password-Validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3424545325583984879'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3424545325583984879'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Password-Validation.html' title='Password Validation'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiZ45IUn4US2T5w2dOMiipXHXwgVNuBTw3n_MN5HmKPlEuM-0LR6rXEj0bR11c3HlZ9hwbvcr6PqJU-xERpTFYQjK5zAand3lX5oNGoFiwbXeBjZxLfN3lclVAMnXNgiDJLO1od94_45Y8/s72-c/20180416_152205.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-7837235160224934101</id><published>2021-04-17T22:41:00.001+05:30</published><updated>2021-04-17T22:41:10.258+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="Salider"/><title type='text'>Salider Page Html</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNVP5PYk1rHgho0yW2f9B6g3fPp8znTZ9AlK8I-JuQjGsqIE7DSgWfPE6zBrhKacdLzslvhbQZeaCbFR6XNZwgraTjDGgRArKwvp2rMVnR2jHOI9ALREpVzoF7HDgRpP0EhNAt0P_3mY27/s1600/Untitled-1.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNVP5PYk1rHgho0yW2f9B6g3fPp8znTZ9AlK8I-JuQjGsqIE7DSgWfPE6zBrhKacdLzslvhbQZeaCbFR6XNZwgraTjDGgRArKwvp2rMVnR2jHOI9ALREpVzoF7HDgRpP0EhNAt0P_3mY27/s320/Untitled-1.jpg&quot; width=&quot;320&quot; height=&quot;256&quot; data-original-width=&quot;500&quot; data-original-height=&quot;400&quot; /&gt;&lt;/a&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML5&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;
&amp;lt;html lang=&quot;en&quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot;&amp;gt;
&amp;lt;title&amp;gt;HTML4&amp;lt;/title&amp;gt;
&amp;lt;style&amp;gt;
body {
&amp;nbsp; &amp;nbsp; font-family: Verdana,sans-serif;
&amp;nbsp; &amp;nbsp; font-size: 0.9em;
}
div#header, div#footer {
&amp;nbsp; &amp;nbsp; padding: 10px;
&amp;nbsp; &amp;nbsp; color: white;
&amp;nbsp; &amp;nbsp; background-color: black;
}
div#content {
&amp;nbsp; &amp;nbsp; margin: 5px;
&amp;nbsp; &amp;nbsp; padding: 10px;
&amp;nbsp; &amp;nbsp; background-color: lightgrey;
}
div.article {
&amp;nbsp; &amp;nbsp; margin: 5px;
&amp;nbsp; &amp;nbsp; padding: 10px;
&amp;nbsp; &amp;nbsp; background-color: white;
}
div#menu ul {
&amp;nbsp; &amp;nbsp; padding: 0;
}
div#menu ul li {
&amp;nbsp; &amp;nbsp; display: inline;
&amp;nbsp; &amp;nbsp; margin: 5px;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div id=&quot;header&quot;&amp;gt;
&amp;nbsp; &amp;lt;h1&amp;gt;Monday Times&amp;lt;/h1&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;menu&quot;&amp;gt;
&amp;nbsp; &amp;lt;ul&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;About&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Contact&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;Update&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;content&quot;&amp;gt;
&amp;nbsp; &amp;lt;h2&amp;gt;News&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;article&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Article&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in porta lorem. Morbi condimentum est nibh, et consectetur tortor feugiat at.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;article&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;News Article&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in porta lorem. Morbi condimentum est nibh, et consectetur tortor feugiat at.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;footer&quot;&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;&amp;amp;amp;copy; 2018 Monday Times. All rights reserved.&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp;
&lt;p&gt;Change to HTML5 Semantic Elements
The existing CSS contains id&#39;s and classes for styling the elements&lt;/p&gt;
&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
body {
    font-family: Verdana,sans-serif;
    font-size: 0.9em;
}
div#header, div#footer {
    padding: 10px;
    color: white;
    background-color: black;
}
div#content {
    margin: 5px;
    padding: 10px;
    background-color: lightgrey;
}
div.article {
    margin: 5px;
    padding: 10px;
    background-color: white;
}
div#menu ul {
    padding: 0;
}
div#menu ul li {
    display: inline;
    margin: 5px;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;   
&lt;p&gt;Replace with equal CSS styles for HTML5 semantic elements:&lt;/p&gt;
&amp;nbsp;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
body {
    font-family: Verdana,sans-serif;
    font-size: 0.9em;
}
header, footer {
    padding: 10px;
    color: white;
    background-color: black;
}
section {
    margin: 5px;
    padding: 10px;
    background-color: lightgrey;
}
article {
    margin: 5px;
    padding: 10px;
    background-color: white;
}
nav ul {
    padding: 0;
}
nav ul li {
    display: inline;
    margin: 5px;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;   
&lt;p&gt;Finally, change the elements to HTML5 semantic elements:&lt;/p&gt;
&amp;nbsp;   
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (4) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
 &amp;lt;body&amp;gt;
 &amp;lt;header&amp;gt; 
 &amp;lt;h1&amp;gt;Monday Times&amp;lt;/h1&amp;gt; 
&amp;lt;/header&amp;gt;
&amp;lt;nav&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;News&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Sports&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Weather&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;/nav&amp;gt;
&amp;lt;section&amp;gt;
&amp;lt;h2&amp;gt;News Section&amp;lt;/h2&amp;gt;
&amp;lt;article&amp;gt;
&amp;lt;h2&amp;gt;News Article&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in porta lorem. Morbi condimentum est nibh, et consectetur tortor feugiat at.&amp;lt;/p&amp;gt;
&amp;lt;/article&amp;gt;
&amp;lt;article&amp;gt;
&amp;lt;h2&amp;gt;News Article&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in porta lorem. Morbi condimentum est nibh, et consectetur tortor feugiat at.&amp;lt;/p&amp;gt;
&amp;lt;/article&amp;gt;
&amp;lt;/section&amp;gt;
&amp;lt;footer&amp;gt;
&amp;lt;p&amp;gt;&amp;copy; 2014 Monday Times. All rights reserved.&amp;lt;/p&amp;gt;
&amp;lt;/footer&amp;gt;
&amp;lt;/body&amp;gt; 
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/7837235160224934101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Salider-Page-Html.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/7837235160224934101'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/7837235160224934101'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Salider-Page-Html.html' title='Salider Page Html'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNVP5PYk1rHgho0yW2f9B6g3fPp8znTZ9AlK8I-JuQjGsqIE7DSgWfPE6zBrhKacdLzslvhbQZeaCbFR6XNZwgraTjDGgRArKwvp2rMVnR2jHOI9ALREpVzoF7HDgRpP0EhNAt0P_3mY27/s72-c/Untitled-1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-2060592449630317101</id><published>2021-04-17T22:27:00.001+05:30</published><updated>2021-04-17T22:27:18.318+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><category scheme="http://www.blogger.com/atom/ns#" term="Salider"/><title type='text'>Side Navigation Styles</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUZx5DS2yGsOvkFus8qeOzrdc14nnydBlp124YnAhzj7YCRox4YvOQkJWvgiRBPmtX0E4l_XjORv1TWTqysYgIK7BfPt_BbLiYy5zeCFcOc9XRYWF03ohxR_A_rpvvelvZ7b2xKadHfwJ/s1600/PicsArt_04-08-02.12.11.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUZx5DS2yGsOvkFus8qeOzrdc14nnydBlp124YnAhzj7YCRox4YvOQkJWvgiRBPmtX0E4l_XjORv1TWTqysYgIK7BfPt_BbLiYy5zeCFcOc9XRYWF03ohxR_A_rpvvelvZ7b2xKadHfwJ/s320/PicsArt_04-08-02.12.11.jpg&quot; width=&quot;320&quot; height=&quot;275&quot; data-original-width=&quot;958&quot; data-original-height=&quot;824&quot; /&gt;&lt;/a&gt;
&lt;b&gt;
Create an Side Navigation
&lt;/b&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML:&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;div id=&quot;mySidenav&quot; class=&quot;sidenav&quot;&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;javascript:void(0)&quot; class=&quot;closebtn&quot; onclick=&quot;closeNav()&quot;&amp;gt;&amp;amp;times;&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;About&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;Services&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;Clients&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!-- Use any element to open the sidenav --&amp;gt;
&amp;lt;span onclick=&quot;openNav()&quot;&amp;gt;open&amp;lt;/span&amp;gt;
&amp;lt;!-- Add all page content inside this div if you want the side nav to push page content to the right (not used if you only want the sidenav to sit on top of the page --&amp;gt;
&amp;lt;div id=&quot;main&quot;&amp;gt;
&amp;nbsp; ...
&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

&amp;nbsp;

&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) CSS:&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}
/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #f1f1f1;
}
/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}
/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-left .5s;
    padding: 20px;
}
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

&amp;nbsp;
&lt;p&gt;
The example below slides in the side navigation, and makes it 255px wide:
&lt;/p&gt;
&amp;nbsp;


&lt;blockquote&gt;&lt;b&gt;Sidenav Overlay&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) JavaScript: &quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Set the width of the side navigation to 250px */
function openNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;250px&quot;;
}
/* Set the width of the side navigation to 0 */
function closeNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;0&quot;;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

&amp;nbsp;
&lt;p&gt;The example below slides in the side navigation, and pushes the page content to the right (the value used to set the width of the sidenav is also used to set the left margin of the &quot;page content&quot;):&lt;/p&gt;
&amp;nbsp;


&lt;blockquote&gt;&lt;b&gt;Sidenav Push Content&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1)&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px */
function openNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;250px&quot;;
    document.getElementById(&quot;main&quot;).style.marginLeft = &quot;250px&quot;;
}
/* Set the width of the side navigation to 0 and the left margin of the page content to 0 */
function closeNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;0&quot;;
    document.getElementById(&quot;main&quot;).style.marginLeft = &quot;0&quot;;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;


&amp;nbsp;
&lt;p&gt;The example below also slides in the side navigation, and pushes the page content to the right, only this time, we add a black background color with a 50% opacity to the body element,&lt;/p&gt;
&amp;nbsp;


&lt;blockquote&gt;&lt;b&gt;Sidenav Push Content w/ opacity&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2)&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */
function openNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;250px&quot;;
    document.getElementById(&quot;main&quot;).style.marginLeft = &quot;250px&quot;;
    document.body.style.backgroundColor = &quot;rgba(0,0,0,0.4)&quot;;
}
/* Set the width of the side navigation to 0 and the left margin of the page content to 0, and the background color of body to white */
function closeNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;0&quot;;
    document.getElementById(&quot;main&quot;).style.marginLeft = &quot;0&quot;;
    document.body.style.backgroundColor = &quot;white&quot;;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;


&amp;nbsp;
&lt;p&gt;The example below slides in the side navigation from the left and covers the whole page (100% width):&lt;/p&gt;
&amp;nbsp;


&lt;blockquote&gt;&lt;b&gt;Sidenav Full-width:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3)&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Open the sidenav */
function openNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;100%&quot;;
}
/* Close/hide the sidenav */
function closeNav() {
    document.getElementById(&quot;mySidenav&quot;).style.width = &quot;0&quot;;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

&amp;nbsp;
&lt;p&gt;The example below opens and close the side navigation menu without animations:&lt;/p&gt;
&amp;nbsp;


&lt;blockquote&gt;&lt;b&gt;Sidenav without Animation&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (4)&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Open the sidenav */
function openNav() {
    document.getElementById(&quot;mySidenav&quot;).style.display = &quot;block&quot;;
}
/* Close/hide the sidenav */
function closeNav() {
    document.getElementById(&quot;mySidenav&quot;).style.display = &quot;none&quot;;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;


&amp;nbsp;
&lt;p&gt;The example below shows how to create a right-sided navigation menu:&lt;/p&gt;
&amp;nbsp;
&lt;blockquote&gt;&lt;b&gt;Right-sided navigation:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (5)&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
.sidenav {
    right: 0;
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;
&lt;p&gt;The example below shows how to create a side navigation menu that is always shown (fixed):&lt;/p&gt;
&amp;nbsp;
&lt;blockquote&gt;&lt;b&gt;Always show sidenav:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (6)&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* The sidenav */
.sidenav {
  height: 100%;
  width: 200px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 20px;
}
/* Page content */
.main {
  margin-left: 200px; /* Same as the width of the sidenav */
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/2060592449630317101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Side-Navigation-Styles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/2060592449630317101'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/2060592449630317101'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Side-Navigation-Styles.html' title='Side Navigation Styles'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUZx5DS2yGsOvkFus8qeOzrdc14nnydBlp124YnAhzj7YCRox4YvOQkJWvgiRBPmtX0E4l_XjORv1TWTqysYgIK7BfPt_BbLiYy5zeCFcOc9XRYWF03ohxR_A_rpvvelvZ7b2xKadHfwJ/s72-c/PicsArt_04-08-02.12.11.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-3389228687062693560</id><published>2021-04-17T22:26:00.001+05:30</published><updated>2021-04-17T22:26:26.845+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Salider"/><title type='text'>Fixed Auto Sidebar Html Css</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkBHZNpijtPdO8Iq7OSOOH1C8yKC3PrQGgawg-Ftd_TmiD0uU_kOH3lvravnx72N8B3HYrjYfBRXbZKiAnCMuvVGZ9VI1Jmsldgg7gCtcZ-li7f7I4eb10p38K-TrJeKcpAREDmfFY2byj/s1600/PicsArt_04-08-01.25.49.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkBHZNpijtPdO8Iq7OSOOH1C8yKC3PrQGgawg-Ftd_TmiD0uU_kOH3lvravnx72N8B3HYrjYfBRXbZKiAnCMuvVGZ9VI1Jmsldgg7gCtcZ-li7f7I4eb10p38K-TrJeKcpAREDmfFY2byj/s320/PicsArt_04-08-01.25.49.jpg&quot; width=&quot;320&quot; height=&quot;291&quot; data-original-width=&quot;1080&quot; data-original-height=&quot;981&quot; /&gt;&lt;/a&gt;

&lt;p&gt;Learn how to create a fixed side navigation menu with CSS.&lt;/p&gt;
&lt;p&gt;
Fixed Auto Sidebar Html and Css&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) HTML&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;!-- Side navigation --&amp;gt;
&amp;lt;div class=&quot;sidenav&quot;&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;About&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;Services&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;Clients&amp;lt;/a&amp;gt;
&amp;nbsp; &amp;lt;a href=&quot;#&quot;&amp;gt;Contact&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!-- Page content --&amp;gt;
&amp;lt;div class=&quot;main&quot;&amp;gt;
&amp;nbsp; ...
&amp;lt;/div&amp;gt;
&lt;/div&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) CSS&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* The sidebar menu */
.sidenav {
    height: 100%; 
/* Full-height: remove this if you want &quot;auto&quot; height */
    width: 160px; 
/* Set the width of the sidebar */
    position: fixed; 
/* Fixed Sidebar (stay in place on scroll) */
    z-index: 1; 
/* Stay on top */
    top: 0; 
/* Stay at the top */
    left: 0;
    background-color: #111; 
/* Black */
    overflow-x: hidden; 
/* Disable horizontal scroll */
    padding-top: 20px;
}

/* The navigation menu links */
.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #f1f1f1;
}

/* Style page content */
.main {
    margin-left: 160px; 
/* Same as the width of the sidebar */
    padding: 0px 10px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/3389228687062693560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Fixed-Auto-Sidebar-Html-Css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3389228687062693560'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/3389228687062693560'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Fixed-Auto-Sidebar-Html-Css.html' title='Fixed Auto Sidebar Html Css'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkBHZNpijtPdO8Iq7OSOOH1C8yKC3PrQGgawg-Ftd_TmiD0uU_kOH3lvravnx72N8B3HYrjYfBRXbZKiAnCMuvVGZ9VI1Jmsldgg7gCtcZ-li7f7I4eb10p38K-TrJeKcpAREDmfFY2byj/s72-c/PicsArt_04-08-01.25.49.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-8960096707125767676</id><published>2021-04-17T22:25:00.003+05:30</published><updated>2021-04-17T22:25:47.204+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Search"/><title type='text'>Full screen Search Box</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRvJNZgWsjkwM78R-Tk4Q1G-qwL19v4P8QbGs-ww0VTLMeBBr7nz1foHaOsk7La5rydBVbzo0D5vgrcYBm33h-IR4EvrC02Vd40TDnFt0VvnoW4WW1f8JxrjiTht3Qd-WdybeC179gJ3TM/s1600/PicsArt_04-17-09.49.22.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRvJNZgWsjkwM78R-Tk4Q1G-qwL19v4P8QbGs-ww0VTLMeBBr7nz1foHaOsk7La5rydBVbzo0D5vgrcYBm33h-IR4EvrC02Vd40TDnFt0VvnoW4WW1f8JxrjiTht3Qd-WdybeC179gJ3TM/s320/PicsArt_04-17-09.49.22.jpg&quot; width=&quot;320&quot; height=&quot;240&quot; data-original-width=&quot;1024&quot; data-original-height=&quot;768&quot; /&gt;&lt;/a&gt;
  
&lt;blockquote&gt;&lt;b&gt;Create a Fullscreen Search Box&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div id=&quot;myOverlay&quot; class=&quot;overlay&quot;&amp;gt;
&amp;nbsp; &amp;lt;span class=&quot;closebtn&quot; onclick=&quot;closeSearch()&quot; title=&quot;Close Overlay&quot;&amp;gt;x&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;overlay-content&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;form action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Search..&quot; name=&quot;search&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-search&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  
&lt;blockquote&gt;&lt;b&gt;Use JavaScript to turn on and off the overlay/fullscreen effect:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) javascript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
// Open the full screen search box
function openSearch() {
&amp;nbsp; document.getElementById(&quot;myOverlay&quot;).style.display = &quot;block&quot;;
}
// Close the full screen search box
function closeSearch() {
&amp;nbsp; document.getElementById(&quot;myOverlay&quot;).style.display = &quot;none&quot;;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
  &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* The overlay effect with black background */
.overlay {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9); /* Black with a little bit see-through */
}
/* The content */
.overlay-content {
  position: relative;
  top: 46%;
  width: 80%;
  text-align: center;
  margin-top: 30px;
  margin: auto;
}
/* Close button */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  cursor: pointer;
  color: white;
}
.overlay .closebtn:hover {
  color: #ccc;
}
/* Style the search field */
.overlay input[type=text] {
  padding: 15px;
  font-size: 17px;
  border: none;
  float: left;
  width: 80%;
  background: white;
}
.overlay input[type=text]:hover {
  background: #f1f1f1;
}
/* Style the submit button */
.overlay button {
  float: left;
  width: 20%;
  padding: 15px;
  background: #ddd;
  font-size: 17px;
  border: none;
  cursor: pointer;
}
.overlay button:hover {
  background: #bbb;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/8960096707125767676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Full-Screen-Search-Box.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/8960096707125767676'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/8960096707125767676'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Full-Screen-Search-Box.html' title='Full screen Search Box'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRvJNZgWsjkwM78R-Tk4Q1G-qwL19v4P8QbGs-ww0VTLMeBBr7nz1foHaOsk7La5rydBVbzo0D5vgrcYBm33h-IR4EvrC02Vd40TDnFt0VvnoW4WW1f8JxrjiTht3Qd-WdybeC179gJ3TM/s72-c/PicsArt_04-17-09.49.22.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-4092474867962197469</id><published>2021-04-17T22:25:00.001+05:30</published><updated>2021-04-17T22:25:03.400+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Search"/><title type='text'>Search Button With CSS</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3fqCz_TLSiSN4fwxreySGqBA4IMcizMM9MZfpG_2qqZYSZ1VnurPNpLzP9zmkqESfJiAvex5yFp_E20SN72t36f3GkentCZU9mQwKfVwX9cb-x4nY2r5BuAPhaHGi02SFF4Yi1mLCpM-/s1600/20180417_221143.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3fqCz_TLSiSN4fwxreySGqBA4IMcizMM9MZfpG_2qqZYSZ1VnurPNpLzP9zmkqESfJiAvex5yFp_E20SN72t36f3GkentCZU9mQwKfVwX9cb-x4nY2r5BuAPhaHGi02SFF4Yi1mLCpM-/s320/20180417_221143.jpg&quot; width=&quot;320&quot; height=&quot;195&quot; data-original-width=&quot;1080&quot; data-original-height=&quot;659&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Search Button&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!-- Load icon library --&amp;gt;
&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&quot;&amp;gt;
&amp;lt;!-- The form --&amp;gt;
&amp;lt;form class=&quot;example&quot; action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Search..&quot; name=&quot;search&quot;&amp;gt;
&amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-search&quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/button&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
* {
  box-sizing: border-box;
}
/* Style the search field */
form.example input[type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 80%;
  background: #f1f1f1;
}
/* Style the submit button */
form.example button {
  float: left;
  width: 20%;
  padding: 10px;
  background: #2196F3;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none; /* Prevent double borders */
  cursor: pointer;
}
form.example button:hover {
  background: #0b7dda;
}
/* Clear floats */
form.example::after {
  content: &quot;&quot;;
  clear: both;
  display: table;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/4092474867962197469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Search-Button-With-Css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/4092474867962197469'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/4092474867962197469'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Search-Button-With-Css.html' title='Search Button With CSS'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3fqCz_TLSiSN4fwxreySGqBA4IMcizMM9MZfpG_2qqZYSZ1VnurPNpLzP9zmkqESfJiAvex5yFp_E20SN72t36f3GkentCZU9mQwKfVwX9cb-x4nY2r5BuAPhaHGi02SFF4Yi1mLCpM-/s72-c/20180417_221143.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-1335184803914693963</id><published>2021-04-17T22:24:00.001+05:30</published><updated>2021-04-17T22:24:23.998+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Clipboard"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Copy Text Clipboard</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtEIO0VKxLt9K1fewEgfp9QGtRmWpiRQ0ig6UIrX5YEB1NJp4zqZgPfoyqTmbpLdNdzFdidFr0j6MO9WNYoxhnsxxhCFW0fBaZp9TU245kIUV3WL8N5XDL1d7hj99pwgh6S9Aj1OW6oTzB/s1600/PicsArt_03-30-11.21.05.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtEIO0VKxLt9K1fewEgfp9QGtRmWpiRQ0ig6UIrX5YEB1NJp4zqZgPfoyqTmbpLdNdzFdidFr0j6MO9WNYoxhnsxxhCFW0fBaZp9TU245kIUV3WL8N5XDL1d7hj99pwgh6S9Aj1OW6oTzB/s320/PicsArt_03-30-11.21.05.jpg&quot; width=&quot;320&quot; height=&quot;144&quot; data-original-width=&quot;561&quot; data-original-height=&quot;253&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Text to Clipboard&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!-- The text field --&amp;gt;
&amp;lt;input type=&quot;text&quot; value=&quot;Hello World&quot; id=&quot;myInput&quot;&amp;gt;
&amp;lt;!-- The button used to copy the text --&amp;gt;
&amp;lt;button onclick=&quot;myFunction()&quot;&amp;gt;Copy text&amp;lt;/button&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
function myFunction() {
&amp;nbsp; /* Get the text field */
&amp;nbsp; var copyText = document.getElementById(&quot;myInput&quot;);
&amp;nbsp; /* Select the text field */
&amp;nbsp; copyText.select();
&amp;nbsp; /* Copy the text inside the text field */
&amp;nbsp; document.execCommand(&quot;Copy&quot;);
&amp;nbsp; /* Alert the copied text */
&amp;nbsp; alert(&quot;Copied the text: &quot; + copyText.value);
&lt;/code&gt;
&lt;/pre&gt;&lt;b&gt;Note: The document.execCommand() method is not supported in IE9 and earlier.&lt;/b&gt;
&lt;/blockquote&gt;
 &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;&lt;b&gt;Display Copied Text in a Tooltip&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (3) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip .tooltiptext::after {
  content: &quot;&quot;;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/1335184803914693963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/copy-text-clipboard.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/1335184803914693963'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/1335184803914693963'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/copy-text-clipboard.html' title='Copy Text Clipboard'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtEIO0VKxLt9K1fewEgfp9QGtRmWpiRQ0ig6UIrX5YEB1NJp4zqZgPfoyqTmbpLdNdzFdidFr0j6MO9WNYoxhnsxxhCFW0fBaZp9TU245kIUV3WL8N5XDL1d7hj99pwgh6S9Aj1OW6oTzB/s72-c/PicsArt_03-30-11.21.05.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-422677051706850232</id><published>2021-04-17T22:22:00.001+05:30</published><updated>2021-04-17T22:22:36.348+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Responsive Form</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVbq3FTQoa-mf7TIShpCXfZiJoGL6ZfKMLoqPifFPwp6GJz-hUboIovGEhE4Tj7cl3ydaOtvLhk7ODs18d4niOP8XO0muKawlajuOc7aX-ifOR1o9mr07CQYDX2VXJKAkCFji2N0QAkOHd/s1600/20180417_230052.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVbq3FTQoa-mf7TIShpCXfZiJoGL6ZfKMLoqPifFPwp6GJz-hUboIovGEhE4Tj7cl3ydaOtvLhk7ODs18d4niOP8XO0muKawlajuOc7aX-ifOR1o9mr07CQYDX2VXJKAkCFji2N0QAkOHd/s320/20180417_230052.jpg&quot; width=&quot;259&quot; height=&quot;320&quot; data-original-width=&quot;583&quot; data-original-height=&quot;721&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Use a &amp;lt;form&amp;gt; element to process the input. You can learn more about this in our PHP tutorial.

Add inputs (with a matching label) for each field, and wrap a &amp;lt;div&amp;gt; element around each label and input to set a specified width with CSS:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;form action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-25&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;fname&quot;&amp;gt;First Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-75&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;fname&quot; name=&quot;firstname&quot; placeholder=&quot;Your name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-25&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;lname&quot;&amp;gt;Last Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-75&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;lname&quot; name=&quot;lastname&quot; placeholder=&quot;Your last name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-25&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;country&quot;&amp;gt;Country&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-75&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;select id=&quot;country&quot; name=&quot;country&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;australia&quot;&amp;gt;Australia&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;canada&quot;&amp;gt;Canada&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;usa&quot;&amp;gt;USA&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-25&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;subject&quot;&amp;gt;Subject&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-75&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textarea id=&quot;subject&quot; name=&quot;subject&quot; placeholder=&quot;Write something..&quot; style=&quot;height:200px&quot;&amp;gt;&amp;lt;/textarea&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style inputs, select elements and textareas */
input[type=text], select, textarea{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}
/* Style the label to display next to the inputs */
label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}
/* Style the submit button */
input[type=submit] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}
/* Style the container */
.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
/* Floating column for labels: 25% width */
.col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}
/* Floating column for inputs: 75% width */
.col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}
/* Clear floats after the columns */
.row:after {
  content: &quot;&quot;;
  display: table;
  clear: both;
}
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-25, .col-75, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }
}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/422677051706850232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Responsive-Form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/422677051706850232'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/422677051706850232'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Responsive-Form.html' title='Responsive Form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVbq3FTQoa-mf7TIShpCXfZiJoGL6ZfKMLoqPifFPwp6GJz-hUboIovGEhE4Tj7cl3ydaOtvLhk7ODs18d4niOP8XO0muKawlajuOc7aX-ifOR1o9mr07CQYDX2VXJKAkCFji2N0QAkOHd/s72-c/20180417_230052.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-8066712726575354944</id><published>2021-04-17T22:21:00.002+05:30</published><updated>2021-04-17T22:21:51.488+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Email Subscribe Newsletter</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgafEXTIMmRejtiREANmKVgZa5gllUns5OrW_T2u9ZzXksnngEeC9Izh71fIPwE8xXC2Bild1VVnhESw0CIOTm1yrHiKNShY8e-NLIl2BU1KexJrQdAvBzxaqPnMpYdZTB0pEgew0TLDc3f/s1600/20180417_232905.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgafEXTIMmRejtiREANmKVgZa5gllUns5OrW_T2u9ZzXksnngEeC9Izh71fIPwE8xXC2Bild1VVnhESw0CIOTm1yrHiKNShY8e-NLIl2BU1KexJrQdAvBzxaqPnMpYdZTB0pEgew0TLDc3f/s320/20180417_232905.jpg&quot; width=&quot;320&quot; height=&quot;197&quot; data-original-width=&quot;964&quot; data-original-height=&quot;592&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Use a &amp;lt;form&amp;gt; element to process the input. You can learn more about this in our PHP tutorial. Then add inputs for each field, together with a &quot;submit&quot; button:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;form action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Subscribe to our Newsletter&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Lorem ipsum..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot; style=&quot;background-color:white&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Name&quot; name=&quot;name&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Email address&quot; name=&quot;mail&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; name=&quot;subscribe&quot;&amp;gt; Daily Newsletter
&amp;nbsp; &amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Subscribe&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style the form element with a border around it */
form {
    border: 4px solid #f1f1f1;
}
/* Add some padding and a grey background color to containers */
.container {
    padding: 20px;
    background-color: #f1f1f1;
}
/* Style the input elements and the submit button */
input[type=text], input[type=submit] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
/* Add margins to the checkbox */
input[type=checkbox] {
    margin-top: 16px;
}
/* Style the submit button */
input[type=submit] {
    background-color: #4CAF50;
    color: white;
    border: none;
}
input[type=submit]:hover {
    opacity: 0.8;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/8066712726575354944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Email-Subscribe-Newsletter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/8066712726575354944'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/8066712726575354944'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Email-Subscribe-Newsletter.html' title='Email Subscribe Newsletter'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgafEXTIMmRejtiREANmKVgZa5gllUns5OrW_T2u9ZzXksnngEeC9Izh71fIPwE8xXC2Bild1VVnhESw0CIOTm1yrHiKNShY8e-NLIl2BU1KexJrQdAvBzxaqPnMpYdZTB0pEgew0TLDc3f/s72-c/20180417_232905.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-7965108294484209606</id><published>2021-04-17T22:21:00.000+05:30</published><updated>2021-04-17T22:21:06.960+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Contact Form Box</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggDZDL0fW1LSK3YBCjPneC2tjtB3oJnlRLKwXvDSiBclbbP1HQqcrvcfA0VfmYvzOQ7foDM7eIy6hXgDMFcp90MO-9_-CS0c1J2OLgjkyKp19PaREowSqFp6WvTeqxeSW5GEmLhswxS4-H/s1600/20180418_001623.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggDZDL0fW1LSK3YBCjPneC2tjtB3oJnlRLKwXvDSiBclbbP1HQqcrvcfA0VfmYvzOQ7foDM7eIy6hXgDMFcp90MO-9_-CS0c1J2OLgjkyKp19PaREowSqFp6WvTeqxeSW5GEmLhswxS4-H/s320/20180418_001623.jpg&quot; width=&quot;320&quot; height=&quot;203&quot; data-original-width=&quot;1030&quot; data-original-height=&quot;654&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Use a &amp;lt;form&amp;gt; element to process the input. You can learn more about this in our PHP tutorial. Then add inputs (with a matching label) for each field:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;form action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;fname&quot;&amp;gt;First Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;fname&quot; name=&quot;firstname&quot; placeholder=&quot;Your name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;lname&quot;&amp;gt;Last Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;lname&quot; name=&quot;lastname&quot; placeholder=&quot;Your last name..&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;country&quot;&amp;gt;Country&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;select id=&quot;country&quot; name=&quot;country&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;australia&quot;&amp;gt;Australia&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;canada&quot;&amp;gt;Canada&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option value=&quot;usa&quot;&amp;gt;USA&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;subject&quot;&amp;gt;Subject&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;textarea id=&quot;subject&quot; name=&quot;subject&quot; placeholder=&quot;Write something..&quot; style=&quot;height:200px&quot;&amp;gt;&amp;lt;/textarea&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

 &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Style inputs with type=&quot;text&quot;, select elements and textareas */
input[type=text], select, textarea {
    width: 100%; 
/* Full width */
    padding: 12px; 
/* Some padding */  
    border: 1px solid #ccc; 
/* Gray border */
    border-radius: 4px; 
/* Rounded borders */
    box-sizing: border-box; 
/* Make sure that padding and width stays in place */
    margin-top: 6px; 
/* Add a top margin */
    margin-bottom: 16px; 
/* Bottom margin */
    resize: vertical;
/* Allow the user to vertically resize the textarea (not horizontally) */
}
/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    background-color: #45a049;
}
/* Add a background color and some padding around the form */
.container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/7965108294484209606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Contact-Form-Box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/7965108294484209606'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/7965108294484209606'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Contact-Form-Box.html' title='Contact Form Box'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggDZDL0fW1LSK3YBCjPneC2tjtB3oJnlRLKwXvDSiBclbbP1HQqcrvcfA0VfmYvzOQ7foDM7eIy6hXgDMFcp90MO-9_-CS0c1J2OLgjkyKp19PaREowSqFp6WvTeqxeSW5GEmLhswxS4-H/s72-c/20180418_001623.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-5713199815803761138</id><published>2021-04-17T22:20:00.001+05:30</published><updated>2021-04-17T22:20:18.914+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Checkout"/><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><title type='text'>Checkout Form Box</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsi80P126zL1gjckzedjg5F8HokvPt-F5RbWL4riO8K6eFFyKHBRfO-VFHaDXn_hznZqlMELQmDR7sO7VcQ3Pg65zDWmuhUKlRg5uo-ce516dm7sFasjdFzF1z83CQ_0T1KNIYM9oVImdr/s1600/20180418_112439.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;973&quot; data-original-width=&quot;1030&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsi80P126zL1gjckzedjg5F8HokvPt-F5RbWL4riO8K6eFFyKHBRfO-VFHaDXn_hznZqlMELQmDR7sO7VcQ3Pg65zDWmuhUKlRg5uo-ce516dm7sFasjdFzF1z83CQ_0T1KNIYM9oVImdr/s320/20180418_112439.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;Create a Checkout Form Box&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;col-75&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
  &amp;nbsp; &amp;nbsp; &amp;lt;form action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-50&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;Billing Address&amp;lt;/h3&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;fname&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-user&quot;&amp;gt;&amp;lt;/i&amp;gt; Full Name&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;fname&quot; name=&quot;firstname&quot; placeholder=&quot;John M. Doe&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;email&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-envelope&quot;&amp;gt;&amp;lt;/i&amp;gt; Email&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;john@example.com&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;adr&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-address-card-o&quot;&amp;gt;&amp;lt;/i&amp;gt; Address&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;adr&quot; name=&quot;address&quot; placeholder=&quot;542 W. 15th Street&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;city&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-institution&quot;&amp;gt;&amp;lt;/i&amp;gt; City&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;city&quot; name=&quot;city&quot; placeholder=&quot;New York&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-50&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;state&quot;&amp;gt;State&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;state&quot; name=&quot;state&quot; placeholder=&quot;NY&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-50&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;zip&quot;&amp;gt;Zip&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;zip&quot; name=&quot;zip&quot; placeholder=&quot;10001&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;col-50&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;Payment&amp;lt;/h3&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;fname&quot;&amp;gt;Accepted Cards&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;icon-container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-cc-visa&quot; style=&quot;color:navy;&quot;&amp;gt;&amp;lt;/i&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-cc-amex&quot; style=&quot;color:blue;&quot;&amp;gt;&amp;lt;/i&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-cc-mastercard&quot; style=&quot;color:red;&quot;&amp;gt;&amp;lt;/i&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-cc-discover&quot; style=&quot;color:orange;&quot;&amp;gt;&amp;lt;/i&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;cname&quot;&amp;gt;Name on Card&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;cname&quot; name=&quot;cardname&quot; placeholder=&quot;John More Doe&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;ccnum&quot;&amp;gt;Credit card number&amp;lt;/label&amp;gt;
  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;ccnum&quot; name=&quot;cardnumber&quot; placeholder=&quot;1111-2222-3333-4444&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;expmonth&quot;&amp;gt;Exp Month&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;expmonth&quot; name=&quot;expmonth&quot; placeholder=&quot;September&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-50&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;expyear&quot;&amp;gt;Exp Year&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;expyear&quot; name=&quot;expyear&quot; placeholder=&quot;2018&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;col-50&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;cvv&quot;&amp;gt;CVV&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;cvv&quot; name=&quot;cvv&quot; placeholder=&quot;352&quot;&amp;gt;
  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; name=&quot;sameadr&quot;&amp;gt; Shipping address same as billing
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;submit&quot; value=&quot;Continue to checkout&quot; class=&quot;btn&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;col-25&quot;&amp;gt;
 &amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Cart
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;price&quot; style=&quot;color:black&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;i class=&quot;fa fa-shopping-cart&quot;&amp;gt;&amp;lt;/i&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;b&amp;gt;4&amp;lt;/b&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Product 1&amp;lt;/a&amp;gt; &amp;lt;span class=&quot;price&quot;&amp;gt;$15&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
  &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Product 2&amp;lt;/a&amp;gt; &amp;lt;span class=&quot;price&quot;&amp;gt;$5&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Product 3&amp;lt;/a&amp;gt; &amp;lt;span class=&quot;price&quot;&amp;gt;$8&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Product 4&amp;lt;/a&amp;gt; &amp;lt;span class=&quot;price&quot;&amp;gt;$2&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hr&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Total &amp;lt;span class=&quot;price&quot; style=&quot;color:black&quot;&amp;gt;&amp;lt;b&amp;gt;$30&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&amp;nbsp;
&lt;blockquote&gt;&lt;b&gt;Use CSS Flexbox to create a responsive layout:&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
.row {
&amp;nbsp; display: -ms-flexbox; /* IE10 */
&amp;nbsp; display: flex;
&amp;nbsp; -ms-flex-wrap: wrap; /* IE10 */
&amp;nbsp; flex-wrap: wrap;
&amp;nbsp; margin: 0 -16px;
}
.col-25 {
&amp;nbsp; -ms-flex: 25%; /* IE10 */
&amp;nbsp; flex: 25%;
}
.col-50 {
&amp;nbsp; -ms-flex: 50%; /* IE10 */
&amp;nbsp; flex: 50%;
}
.col-75 {
  -ms-flex: 75%; /* IE10 */
   flex: 75%;
}
.col-25,
.col-50,
.col-75 {
&amp;nbsp; padding: 0 16px;
}
.container {
&amp;nbsp; background-color: #f2f2f2;
&amp;nbsp; padding: 5px 20px 15px 20px;
&amp;nbsp; border: 1px solid lightgrey;
&amp;nbsp; border-radius: 3px;
}
input[type=text] {
&amp;nbsp; width: 100%;
&amp;nbsp; margin-bottom: 20px;
&amp;nbsp; padding: 12px;
&amp;nbsp; border: 1px solid #ccc;
&amp;nbsp; border-radius: 3px;
}
label {
&amp;nbsp; margin-bottom: 10px;
&amp;nbsp; display: block;
}
.icon-container {
&amp;nbsp; margin-bottom: 20px;
&amp;nbsp; padding: 7px 0;
&amp;nbsp; font-size: 24px;
}
.btn {
&amp;nbsp; background-color: #4CAF50;
&amp;nbsp; color: white;
&amp;nbsp; padding: 12px;
&amp;nbsp; margin: 10px 0;
&amp;nbsp; border: none;
&amp;nbsp; width: 100%;
&amp;nbsp; border-radius: 3px;
&amp;nbsp; cursor: pointer;
&amp;nbsp; font-size: 17px;
}
.btn:hover {
&amp;nbsp; background-color: #45a049;
}
span.price {
&amp;nbsp; float: right;
&amp;nbsp; color: grey;
}
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other (and change the direction - make the &quot;cart&quot; column go on top) */
@media (max-width: 800px) {
&amp;nbsp; .row {
&amp;nbsp; &amp;nbsp; flex-direction: column-reverse;
&amp;nbsp; }
&amp;nbsp; .col-25 {
   &amp;nbsp; margin-bottom: 20px;
&amp;nbsp; }

}&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/5713199815803761138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Checkout-Form-Box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/5713199815803761138'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/5713199815803761138'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Checkout-Form-Box.html' title='Checkout Form Box'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsi80P126zL1gjckzedjg5F8HokvPt-F5RbWL4riO8K6eFFyKHBRfO-VFHaDXn_hznZqlMELQmDR7sO7VcQ3Pg65zDWmuhUKlRg5uo-ce516dm7sFasjdFzF1z83CQ_0T1KNIYM9oVImdr/s72-c/20180418_112439.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-269887045632873238</id><published>2021-04-17T22:19:00.001+05:30</published><updated>2021-04-17T22:19:32.851+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScripts"/><category scheme="http://www.blogger.com/atom/ns#" term="label"/><title type='text'>Click On The Button To Open The Sign Up form</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZqu1LPmXWefBQZ2hxHNk77s5GpONaDEqH5-mHu2j7pW62tH-hLyxBYdV5gJoywmiLdjcsQa_wiHB8cr9ym11hjXESpbdguWxiPGW_6Pb8J3M4OF6sBLwBJRx4sW3284KEQaFhm2R4JxwS/s1600/20180418_120136.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZqu1LPmXWefBQZ2hxHNk77s5GpONaDEqH5-mHu2j7pW62tH-hLyxBYdV5gJoywmiLdjcsQa_wiHB8cr9ym11hjXESpbdguWxiPGW_6Pb8J3M4OF6sBLwBJRx4sW3284KEQaFhm2R4JxwS/s320/20180418_120136.jpg&quot; width=&quot;320&quot; height=&quot;245&quot; data-original-width=&quot;828&quot; data-original-height=&quot;635&quot; /&gt;&lt;/a&gt;
&amp;nbsp;
&lt;blockquote&gt;&lt;b&gt;Sign Up Form&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;form action=&quot;action_page.php&quot; style=&quot;border:1px solid #ccc&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h1&amp;gt;Sign Up&amp;lt;/h1&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Please fill in this form to create an account.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;hr&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;email&quot;&amp;gt;&amp;lt;b&amp;gt;Email&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Enter Email&quot; name=&quot;email&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw&quot;&amp;gt;&amp;lt;b&amp;gt;Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; placeholder=&quot;Enter Password&quot; name=&quot;psw&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw-repeat&quot;&amp;gt;&amp;lt;b&amp;gt;Repeat Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; placeholder=&quot;Repeat Password&quot; name=&quot;psw-repeat&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; name=&quot;remember&quot; style=&quot;margin-bottom:15px&quot;&amp;gt; Remember me
&amp;nbsp; &amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;By creating an account you agree to our &amp;lt;a href=&quot;#&quot; style=&quot;color:dodgerblue&quot;&amp;gt;Terms &amp;amp; Privacy&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;clearfix&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; class=&quot;cancelbtn&quot;&amp;gt;Cancel&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot; class=&quot;signupbtn&quot;&amp;gt;Sign Up&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
* {box-sizing: border-box}
/* Full-width input fields */
&amp;nbsp; input[type=text], input[type=password] {
&amp;nbsp; width: 100%;
&amp;nbsp; padding: 15px;
&amp;nbsp; margin: 5px 0 22px 0;
&amp;nbsp; display: inline-block;
&amp;nbsp; border: none;
&amp;nbsp; background: #f1f1f1;
}
input[type=text]:focus, input[type=password]:focus {
&amp;nbsp; background-color: #ddd;
&amp;nbsp; outline: none;
}
hr {
&amp;nbsp; border: 1px solid #f1f1f1;
&amp;nbsp; margin-bottom: 25px;
}
/* Set a style for all buttons */
button {
&amp;nbsp; background-color: #4CAF50;
&amp;nbsp; color: white;
&amp;nbsp; padding: 14px 20px;
&amp;nbsp; margin: 8px 0;
&amp;nbsp; border: none;
&amp;nbsp; cursor: pointer;
&amp;nbsp; width: 100%;
&amp;nbsp; opacity: 0.9;
}
button:hover {
&amp;nbsp; opacity:1;
}
/* Extra styles for the cancel button */
.cancelbtn {
&amp;nbsp; padding: 14px 20px;
&amp;nbsp; background-color: #f44336;
}
/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
&amp;nbsp; float: left;
&amp;nbsp; width: 50%;
}
/* Add padding to container elements */
.container {
&amp;nbsp; padding: 16px;
}
/* Clear floats */
.clearfix::after {
&amp;nbsp; content: &quot;&quot;;
&amp;nbsp; clear: both;
&amp;nbsp; display: table;
}
/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
&amp;nbsp; .cancelbtn, .signupbtn {
&amp;nbsp; &amp;nbsp; width: 100%;
&amp;nbsp; }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 
&lt;blockquote&gt;&lt;b&gt;Modal Sign Up Form&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!-- Button to open the modal --&amp;gt;
&amp;lt;button onclick=&quot;document.getElementById(&#39;id01&#39;).style.display=&#39;block&#39;&quot;&amp;gt;Sign Up&amp;lt;/button&amp;gt;
&amp;lt;!-- The Modal (contains the Sign Up form) --&amp;gt;
&amp;lt;div id=&quot;id01&quot; class=&quot;modal&quot;&amp;gt;
&amp;nbsp; &amp;lt;span onclick=&quot;document.getElementById(&#39;id01&#39;).style.display=&#39;none&#39;&quot; class=&quot;close&quot; title=&quot;Close Modal&quot;&amp;gt;times;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;form class=&quot;modal-content&quot; action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h1&amp;gt;Sign Up&amp;lt;/h1&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Please fill in this form to create an account.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hr&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;email&quot;&amp;gt;&amp;lt;b&amp;gt;Email&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Enter Email&quot; name=&quot;email&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw&quot;&amp;gt;&amp;lt;b&amp;gt;Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; placeholder=&quot;Enter Password&quot; name=&quot;psw&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw-repeat&quot;&amp;gt;&amp;lt;b&amp;gt;Repeat Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; placeholder=&quot;Repeat Password&quot; name=&quot;psw-repeat&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; name=&quot;remember&quot; style=&quot;margin-bottom:15px&quot;&amp;gt; Remember me
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;By creating an account you agree to our &amp;lt;a href=&quot;#&quot; style=&quot;color:dodgerblue&quot;&amp;gt;Terms &amp;amp; Privacy&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;clearfix&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; onclick=&quot;document.getElementById(&#39;id01&#39;).style.display=&#39;none&#39;&quot; class=&quot;cancelbtn&quot;&amp;gt;Cancel&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot; class=&quot;signup&quot;&amp;gt;Sign Up&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
* {box-sizing: border-box}
/* Full-width input fields */
&amp;nbsp; input[type=text], input[type=password] {
&amp;nbsp; width: 100%;
&amp;nbsp; padding: 15px;
&amp;nbsp; margin: 5px 0 22px 0;
&amp;nbsp; display: inline-block;
&amp;nbsp; border: none;
&amp;nbsp; background: #f1f1f1;
}
/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
&amp;nbsp; background-color: #ddd;
&amp;nbsp; outline: none;
}
/* Set a style for all buttons */
button {
&amp;nbsp; background-color: #4CAF50;
&amp;nbsp; color: white;
&amp;nbsp; padding: 14px 20px;
&amp;nbsp; margin: 8px 0;
&amp;nbsp; border: none;
&amp;nbsp; cursor: pointer;
&amp;nbsp; width: 100%;
&amp;nbsp; opacity: 0.9;
}
button:hover {
&amp;nbsp; opacity:1;
}
/* Extra styles for the cancel button */
.cancelbtn {
&amp;nbsp; padding: 14px 20px;
&amp;nbsp; background-color: #f44336;
}
/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
&amp;nbsp; float: left;
&amp;nbsp; width: 50%;
}
/* Add padding to container elements */
.container {
&amp;nbsp; padding: 16px;
}

/* The Modal (background) */
.modal {
&amp;nbsp; display: none;
 /* Hidden by default */
&amp;nbsp; position: fixed; 
/* Stay in place */
&amp;nbsp; z-index: 1; 
/* Sit on top */
&amp;nbsp; left: 0;
&amp;nbsp; top: 0;
&amp;nbsp; width: 100%;
 /* Full width */
&amp;nbsp; height: 100%; 
/* Full height */
&amp;nbsp; overflow: auto; 
/* Enable scroll if needed */
&amp;nbsp; background-color: #474e5d;
&amp;nbsp; padding-top: 50px;
}
/* Modal Content/Box */
.modal-content {
&amp;nbsp; background-color: #fefefe;
&amp;nbsp; margin: 5% auto 15% auto; 
/* 5% from the top, 15% from the bottom and centered */
&amp;nbsp; border: 1px solid #888;
&amp;nbsp; width: 80%; 
/* Could be more or less, depending on screen size */
}

/* Style the horizontal ruler */
hr {
&amp;nbsp; border: 1px solid #f1f1f1;
&amp;nbsp; margin-bottom: 25px;
}
/* The Close Button (x) */
.close {
&amp;nbsp; position: absolute;
&amp;nbsp; right: 35px;
&amp;nbsp; top: 15px;
&amp;nbsp; font-size: 40px;
&amp;nbsp; font-weight: bold;
&amp;nbsp; color: #f1f1f1;
}
.close:hover,
.close:focus {
&amp;nbsp; color: #f44336;
&amp;nbsp; cursor: pointer;
}
/* Clear floats */
.clearfix::after {
&amp;nbsp; content: &quot;&quot;;
&amp;nbsp; clear: both;
&amp;nbsp; display: table;
}
/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
&amp;nbsp; .cancelbtn, .signupbtn {
&amp;nbsp; &amp;nbsp; width: 100%;
&amp;nbsp; }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 
&lt;blockquote&gt;&lt;b&gt;Tip: You can also use the following javascript to close the modal by clicking outside of the modal content (and not just by using the &quot;x&quot; or &quot;cancel&quot; button to close it):&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example:&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;script&amp;gt;
// Get the modal
var modal = document.getElementById(&#39;id01&#39;);
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
&amp;nbsp; &amp;nbsp; if (event.target == modal) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; modal.style.display = &quot;none&quot;;
&amp;nbsp; &amp;nbsp; }
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/269887045632873238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Click-On-Button-To-Open-Sign-Up-Form.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/269887045632873238'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/269887045632873238'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Click-On-Button-To-Open-Sign-Up-Form.html' title='Click On The Button To Open The Sign Up form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZqu1LPmXWefBQZ2hxHNk77s5GpONaDEqH5-mHu2j7pW62tH-hLyxBYdV5gJoywmiLdjcsQa_wiHB8cr9ym11hjXESpbdguWxiPGW_6Pb8J3M4OF6sBLwBJRx4sW3284KEQaFhm2R4JxwS/s72-c/20180418_120136.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-612407163260900176</id><published>2021-04-17T22:18:00.003+05:30</published><updated>2021-04-17T22:18:52.869+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="label"/><category scheme="http://www.blogger.com/atom/ns#" term="Layout"/><title type='text'>Blog Layout Box</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy3_mkeLto02NTdb6MNIrTr7vs9BZURoDZ7Vfr26IhTMU6kuBXMQzU3uVRn6vxrTV9N1r6yPwk5jSPLamfPEgXuYET6fAKE4sAivmA5s7ATXZ5y5Jmpvts-UMpdujiFyvQUK9oWlDQvoKC/s1600/20180418_145634.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy3_mkeLto02NTdb6MNIrTr7vs9BZURoDZ7Vfr26IhTMU6kuBXMQzU3uVRn6vxrTV9N1r6yPwk5jSPLamfPEgXuYET6fAKE4sAivmA5s7ATXZ5y5Jmpvts-UMpdujiFyvQUK9oWlDQvoKC/s320/20180418_145634.jpg&quot; width=&quot;320&quot; height=&quot;217&quot; data-original-width=&quot;479&quot; data-original-height=&quot;325&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Learn how to create a responsive blog layout that varies between two and full-width columns depending on screen width.&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
body {
  font-family: Arial;
  padding: 20px;
  background: #f1f1f1;
}
/* Header/Blog Title */
.header {
  padding: 30px;
  font-size: 40px;
  text-align: center;
  background: white;
}
/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn { 
  float: left;
  width: 75%;
}
/* Right column */
.rightcolumn {
  float: left;
  width: 25%;
  padding-left: 20px;
}
/* Fake image */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}
/* Add a card effect for articles */
.card {
  background-color: white;
  padding: 20px;
  margin-top: 20px;
}
/* Clear floats after the columns */
.row:after {
  content: &quot;&quot;;
  display: table;
  clear: both;
}
/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #ddd;
  margin-top: 20px;
}
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn { 
    width: 100%;
    padding: 0;
  }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;div class=&quot;header&quot;&amp;gt;
&amp;nbsp; &amp;lt;h2&amp;gt;Blog Name&amp;lt;/h2&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;leftcolumn&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;card&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;TITLE HEADING&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h5&amp;gt;Title description, Dec 7, 2017&amp;lt;/h5&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;fakeimg&quot; style=&quot;height:200px;&quot;&amp;gt;Image&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;card&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;TITLE HEADING&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h5&amp;gt;Title description, mar 30, 2018&amp;lt;/h5&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;fakeimg&quot; style=&quot;height:200px;&quot;&amp;gt;Image&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;rightcolumn&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;card&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;About Me&amp;lt;/h2&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;fakeimg&quot; style=&quot;height:100px;&quot;&amp;gt;Image&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text about me in culpa qui officia deserunt mollit anim..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;card&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;Popular Post&amp;lt;/h3&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;fakeimg&quot;&amp;gt;Image&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;fakeimg&quot;&amp;gt;Image&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;fakeimg&quot;&amp;gt;Image&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;card&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;Follow Me&amp;lt;/h3&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Some text..&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;footer&quot;&amp;gt;
&amp;nbsp; &amp;lt;h2&amp;gt;Footer&amp;lt;/h2&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/612407163260900176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Blog-Layout-Box.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/612407163260900176'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/612407163260900176'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Blog-Layout-Box.html' title='Blog Layout Box'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy3_mkeLto02NTdb6MNIrTr7vs9BZURoDZ7Vfr26IhTMU6kuBXMQzU3uVRn6vxrTV9N1r6yPwk5jSPLamfPEgXuYET6fAKE4sAivmA5s7ATXZ5y5Jmpvts-UMpdujiFyvQUK9oWlDQvoKC/s72-c/20180418_145634.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7404963637785269968.post-5607563588839187767</id><published>2021-04-17T22:18:00.001+05:30</published><updated>2021-04-17T22:18:12.171+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Css"/><category scheme="http://www.blogger.com/atom/ns#" term="Form"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="label"/><title type='text'>Click On The Button To Open The Login Form</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVRh2HgMoFsE3mDadd9ut-MXT49FaApLO9aEEbE_ek-1ISB7TQP2rMops92_XZyM8hUcZn4lbjvlwCM3iPw53jEaDntvyXHWwMK9jOUBE4ry1Xk2ORnT5q2Eakt5HorBrgTYV59vDh3TE2/s1600/20180418_155755.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVRh2HgMoFsE3mDadd9ut-MXT49FaApLO9aEEbE_ek-1ISB7TQP2rMops92_XZyM8hUcZn4lbjvlwCM3iPw53jEaDntvyXHWwMK9jOUBE4ry1Xk2ORnT5q2Eakt5HorBrgTYV59vDh3TE2/s320/20180418_155755.jpg&quot; width=&quot;213&quot; height=&quot;320&quot; data-original-width=&quot;1006&quot; data-original-height=&quot;1511&quot; /&gt;&lt;/a&gt;
 
&lt;blockquote&gt;&lt;b&gt;Click on the button to open the login form&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;form action=&quot;action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;imgcontainer&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;img src=&quot;img_avatar2.png&quot; alt=&quot;Avatar&quot; class=&quot;avatar&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;uname&quot;&amp;gt;&amp;lt;b&amp;gt;Username&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Enter Username&quot; name=&quot;uname&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw&quot;&amp;gt;&amp;lt;b&amp;gt;Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; placeholder=&quot;Enter Password&quot; name=&quot;psw&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;Login&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; name=&quot;remember&quot;&amp;gt; Remember me
&amp;nbsp; &amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot; style=&quot;background-color:#f1f1f1&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; class=&quot;cancelbtn&quot;&amp;gt;Cancel&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;psw&quot;&amp;gt;Forgot &amp;lt;a href=&quot;#&quot;&amp;gt;password?&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 &lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;

&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) Css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* Bordered form */
form {
    border: 3px solid #f1f1f1;
}
/* Full-width inputs */
input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
/* Set a style for all buttons */
button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}
/* Add a hover effect for buttons */
button:hover {
    opacity: 0.8;
}
/* Extra style for the cancel button (red) */
.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}
/* Center the avatar image inside this container */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
}
/* Avatar image */
img.avatar {
    width: 40%;
    border-radius: 50%;
}
/* Add padding to containers */
.container {
    padding: 16px;
}
/* The &quot;Forgot password&quot; text */
span.psw {
    float: right;
    padding-top: 16px;
}
/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }
    .cancelbtn {
        width: 100%;
    }
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;


&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-6619402373330411&quot;
     data-ad-slot=&quot;1665033448&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;



 
&lt;blockquote&gt;&lt;b&gt;Modal Login Form&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (1) Html&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;!-- Button to open the modal login form --&amp;gt;
&amp;lt;button onclick=&quot;document.getElementById(&#39;id01&#39;).style.display=&#39;block&#39;&quot;&amp;gt;Login&amp;lt;/button&amp;gt;
&amp;lt;!-- The Modal --&amp;gt;
&amp;lt;div id=&quot;id01&quot; class=&quot;modal&quot;&amp;gt;
&amp;nbsp; &amp;lt;span onclick=&quot;document.getElementById(&#39;id01&#39;).style.display=&#39;none&#39;&quot;
class=&quot;close&quot; title=&quot;Close Modal&quot;&amp;gt;&amp;amp;times;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;!-- Modal Content --&amp;gt;
&amp;nbsp; &amp;lt;form class=&quot;modal-content animate&quot; action=&quot;/action_page.php&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;imgcontainer&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;img src=&quot;img_avatar2.png&quot; alt=&quot;Avatar&quot; class=&quot;avatar&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;uname&quot;&amp;gt;&amp;lt;b&amp;gt;Username&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;text&quot; placeholder=&quot;Enter Username&quot; name=&quot;uname&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label for=&quot;psw&quot;&amp;gt;&amp;lt;b&amp;gt;Password&amp;lt;/b&amp;gt;&amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;password&quot; placeholder=&quot;Enter Password&quot; name=&quot;psw&quot; required&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;submit&quot;&amp;gt;Login&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot; name=&quot;remember&quot;&amp;gt; Remember me
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;container&quot; style=&quot;background-color:#f1f1f1&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button type=&quot;button&quot; onclick=&quot;document.getElementById(&#39;id01&#39;).style.display=&#39;none&#39;&quot; class=&quot;cancelbtn&quot;&amp;gt;Cancel&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;psw&quot;&amp;gt;Forgot &amp;lt;a href=&quot;#&quot;&amp;gt;password?&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

 
&lt;blockquote&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: (2) Css&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5px auto; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}
/* The Close Button */
.close {
    /* Position it in the top right corner outside of the modal */
    position: absolute;
    right: 25px;
    top: 0; 
    color: #000;
    font-size: 35px;
    font-weight: bold;
}
/* Close button on hover */
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}
/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}
@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}
@keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
 
&lt;blockquote&gt;&lt;b&gt;Tip: You can also use the following javascript to close the modal by clicking outside of the modal content (and not just by using the &quot;x&quot; or &quot;cancel&quot; button to close it):&lt;/b&gt;
&lt;pre data-codetype=&quot;JavaScriptku&quot; title=&quot;Example: JavaScript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;
&amp;lt;script&amp;gt;
// Get the modal
var modal = document.getElementById(&#39;id01&#39;);
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
    if (event.target == modal) {
        modal.style.display = &quot;none&quot;;
    }
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;

</content><link rel='replies' type='application/atom+xml' href='https://balrajuk.blogspot.com/feeds/5607563588839187767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Click-On-Button-To-Open-Login-Form.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/5607563588839187767'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7404963637785269968/posts/default/5607563588839187767'/><link rel='alternate' type='text/html' href='https://balrajuk.blogspot.com/2018/04/Click-On-Button-To-Open-Login-Form.html' title='Click On The Button To Open The Login Form'/><author><name>Blogger Templates</name><uri>http://www.blogger.com/profile/06352705784864450932</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq_sbIhBORGTIKgL5x91WGhsmPkLwZIwQh8Pkv-ZXT8ynrOpaogegrsxNxmk-wUjVWk22MHo-a6aUslqbc4nouM5V_44rmD66biPDg82zNA3lIUfIalBBa1E0ptt_n7cc/s113/PicsArt_1448389541730.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVRh2HgMoFsE3mDadd9ut-MXT49FaApLO9aEEbE_ek-1ISB7TQP2rMops92_XZyM8hUcZn4lbjvlwCM3iPw53jEaDntvyXHWwMK9jOUBE4ry1Xk2ORnT5q2Eakt5HorBrgTYV59vDh3TE2/s72-c/20180418_155755.jpg" height="72" width="72"/><thr:total>2</thr:total></entry></feed>