Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


	<meta charset="UTF-8">
	<title>Popup Show</title>
	<link rel="stylesheet" href="style.css"> 

	<div class="content">

		<button class="show_popup blue_btn" rel="popup1">Отправить письмо</button>

	<div class="overlay_popup"></div>

	<div class="popup" id="popup1">
		<div class="object">
			<form action= "" method= ""> 
				<p>Имя: </p>
				<p><input type= "text" name= "name"></p> 
				<p>E-mail: </p><p> <input type= "text" name= "email"></p> 
				<p>Сообщение: </p>
				<p><textarea rows= "10" cols= "45" name= "message"></textarea></p> 
				<input type= "submit" value= "Отправить">

	<script src="jquery/jquery-1.11.2.min.js"></script>	
	<script src="scripts.js"></script>



                textarea {
	width: 100%;
	resize: none;

/* Ставим кнопку по центру */

.content {
	text-align: center;

/* Стили для нашей кнопки */

button {
  border-radius: 5px;
  padding: 15px 25px;
  font-size: 22px;
  text-decoration: none;
  margin: 20px;
  color: #fff;
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: 0;

button:active {
  transform: translate(0px, 5px);
  -webkit-transform: translate(0px, 5px);
  box-shadow: 0px 1px 0px 0px;

button:focus {
	outline: none !important

/* Стили для содержимого popup окна */

input, textarea {
	color: #494949;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    margin: 0 0 10px;
	padding: 5px;
    width: 100%;
	font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 1.5;

input:focus {
	border-color: #808080;
	outline: none;

textarea:focus {
	border-color: #808080;
	outline: none;

/* Кнопка */

.blue_btn {
  background-color: #55acee;
  box-shadow: 0px 5px 0px 0px #3C93D5;

/* Окно */

.overlay_popup {
	z-index: 999;

.popup {
	display: none;
	position: relative;
	z-index: 1000;
	margin:0 25% 0 25%;

/* Ещё немного стилей для popup окна */

	width: 500px;
	height: 500px;
	background-color: #eee;
	padding: 50px 70px;



                $('.show_popup').click(function() { // Вызываем функцию по нажатию на кнопку 
    var popup_id = $('#' + $(this).attr("rel")); // Связываем rel и popup_id 
    $(popup_id).show(); // Открываем окно
    $('.overlay_popup').show(); // Открываем блок заднего фона
$('.overlay_popup').click(function() { // Обрабатываем клик по заднему фону
    $('.overlay_popup, .popup').hide(); // Скрываем затемнённый задний фон и основное всплывающее окно