CSS Modal Popup Box Window Plugins

Today, We want to share with you CSS Modal Popup Box Window Plugins.In this post we will show you How to create a modal popup using JavaScript, hear for How to create a modal popup using JavaScript and CSS we will give you demo and example for implement.In this post, we will learn about How To Create a Modal Popup Box with CSS and JavaScript with an example.

CSS Modal Popup Box Window Plugins

There are the Following The simple About how to create popup in html with css Full Information With Example and source code.

As I will cover this Post with live Working example to develop javascript popup window onclick example, so the modal popup using jquery is used for this example is following below.

HTML Code For Model Box

index.html

<!-- The Popup Modal -->
<div id="pakainfopopup" class="pakainfopopup"><!-- Modal content -->
<div class="pakainfopopup-content"><span class="pakainfopopupclose">×</span>
<h3>Get in touch</h3>
<form action="#" method="post" name="servaymodel">
<div class="col-md-12">Name <span class="required">*</span>
<input name="username" type="text" /></div>
<div class="col-md-12">Email <span class="required">*</span>
<input name="uemail" type="text" /></div>
<div class="col-md-12">Phone No. <span class="required">*</span>
<input name="uphoneno" type="text" /></div>
<div class="col-md-12">Message <span class="required">*</span>
<textarea style="height: 130px;" name="umessage" placeholder=""></textarea></div>
<div class="col-md-12"><input name="servaymodel" type="submit" value="Get in touch now" /></div>
</form>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
<input type="button" value="Open Popup" />

Css Code

List of all Google Adsense, VueJS, AngularJS, PHP, Laravel Examples.

<style>
/*Popup CSS*/<br />
.pakainfopopup {<br />
	display: none; /* Hidden by default */<br />
	position: fixed; /* Stay in place */<br />
	z-index: 99999999; /* Sit on top */<br />
	padding-top: 100px; /* Location of the box */<br />
	left: 0;<br />
	top: 0;<br />
	width: 100%; /* Full width */<br />
	height: 100%; /* Full height */<br />
	overflow: auto; /* Enable scroll if needed */<br />
	background-color: rgb(0,0,0); /* Fallback color */<br />
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */<br />
}<br />
/* Modal Content */<br />
.pakainfopopup-content {<br />
	background-color: #fefefe;<br />
	margin: auto;<br />
	padding: 20px;<br />
	border: 1px solid #888;<br />
	width: 100%;<br />
	max-width:700px;<br />
}<br />
/* The Close Button */<br />
.pakainfopopupclose {<br />
	color: #aaaaaa;<br />
	float: right;<br />
	font-size: 28px;<br />
	font-weight: bold;<br />
}<br />
.pakainfopopupclose:hover, .pakainfopopupclose:focus {<br />
	color: #000;<br />
	text-decoration: none;<br />
	cursor: pointer;<br />
}<br />
input[type="text"], textarea{width:100%; border:1px solid #cccccc; margin-bottom:10px; padding:5px;}<br />
</style>

JavaScript Code

<script>
function openpakainfopopup(){
	document.getElementById("pakainfopopup").style.display = "block";
}
function removeHideBtnModel(){
	document.getElementById("pakainfopopup").style.display = "none";
}
</script>

Full code javascript css model popup box

index.html



<style>
			/*Popup CSS*/<br />
			.pakainfopopup {<br />
				display: none; /* Hidden by default */<br />
				position: fixed; /* Stay in place */<br />
				z-index: 99999999; /* Sit on top */<br />
				padding-top: 100px; /* Location of the box */<br />
				left: 0;<br />
				top: 0;<br />
				width: 100%; /* Full width */<br />
				height: 100%; /* Full height */<br />
				overflow: auto; /* Enable scroll if needed */<br />
				background-color: rgb(0,0,0); /* Fallback color */<br />
				background-color: rgba(0,0,0,0.4); /* Black w/ opacity */<br />
			}<br />
			/* Modal Content */<br />
			.pakainfopopup-content {<br />
				background-color: #fefefe;<br />
				margin: auto;<br />
				padding: 20px;<br />
				border: 1px solid #888;<br />
				width: 100%;<br />
				max-width:700px;<br />
			}<br />
			/* The Close Button */<br />
			.pakainfopopupclose {<br />
				color: #aaaaaa;<br />
				float: right;<br />
				font-size: 28px;<br />
				font-weight: bold;<br />
			}<br />
			.pakainfopopupclose:hover, .pakainfopopupclose:focus {<br />
				color: #000;<br />
				text-decoration: none;<br />
				cursor: pointer;<br />
			}<br />
			input[type="text"], textarea{width:100%; border:1px solid #cccccc; margin-bottom:10px; padding:5px;}<br />
		</style>

<script>
			function openpakainfopopup(){
				document.getElementById("pakainfopopup").style.display = "block";
			}
			function removeHideBtnModel(){
				document.getElementById("pakainfopopup").style.display = "none";
			}
		</script>


<!-- The Popup Modal -->
<div id="pakainfopopup" class="pakainfopopup"><!-- Simple Modal content -->
<div class="pakainfopopup-content"><span class="pakainfopopupclose">×</span>
<h3>Get in touch</h3>
<form action="#" method="post" name="servaymodel">
<div class="col-md-12">User Name <span class="required">*</span>
<input name="username" type="text" /></div>
<div class="col-md-12">User Email <span class="required">*</span>
<input name="uemail" type="text" /></div>
<div class="col-md-12">User Phone No. <span class="required">*</span>
<input name="uphoneno" type="text" /></div>
<div class="col-md-12">User Message <span class="required">*</span>
<textarea style="height: 130px;" name="umessage" placeholder=""></textarea></div>
<div class="col-md-12"><input name="servaymodel" type="submit" value="Get in touch now" /></div>
</form>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
<input type="button" value="Open Popup Box" />


Web Programming Tutorials Example with Demo

Read :

Another must read:  Laravel Role based permission ACL Tutorial

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Basic Modal Window Popup with Pure CSS.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Reply

Your email address will not be published. Required fields are marked *