Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!DOCTYPE html>
<html lang="ru" style="overflow-x: hidden">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
	<link href="https://fonts.googleapis.com/css?family=Play&display=swap" rel="stylesheet">
	<style>
		* {
	box-sizing: border-box;
	z-index: -3
}

body {
	background-color: #212429;
	color: #737984;
	font-family: 'Play', sans-serif;
	height: 100vh;
}

a {
	text-decoration: none;
	color: #737984;
}

a:hover {
	text-decoration: none;
}



*::selection {
	background-color: #0054ff;
	color: white;
	text-shadow: #6699ff 1px 1px 1px;
}

/* start of CUSTOM SCROLLBAR */

::-webkit-scrollbar-button {
	background-image:url('');
	background-repeat:no-repeat;
	width:5px;
	height:0px;
}

::-webkit-scrollbar-track {
	background-color:#737984;
}

::-webkit-scrollbar-track:hover {
	background-color:#737984;
}

::-webkit-scrollbar-thumb {
	-webkit-border-radius: 0px;
	border-radius: 10px;
	background-color:#0054ff;
}


::-webkit-scrollbar-thumb:hover{
	background-color:#002a7f;
}

::-webkit-resizer{
	background-image:url('');
	background-repeat:no-repeat;
	width:4px;
	height:0px;
}

::-webkit-scrollbar{
	width: 8px;
}

/* end of CUSTOM SCROLLBAR */

/* start of PRELOAD */

#p_prldr {
	position: fixed;
	left: 0;
	top: 0;
	right:0;
	bottom:0;
	background: #111419;
	z-index: 30;
}
 
.contpre small {
	font-size:25px;
}
 
.contpre {
	width: 250px;
	height: 100px;
	position: absolute;
	left: 50%;top: 48%;
	margin-left:-125px;
	margin-top:-75px;
	color: #737984;
	font-size:40px;
	letter-spacing:-2px;
	text-align:center;
	line-height:35px;
}

#p_prldr p {
	margin: 0;
}

.preload_logo {
	animation: 2s linear 0s normal none infinite running preload_logo;
	-webkit-animation: 2s linear 0s normal none infinite running preload_logo;
}

@keyframes preload_logo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes preload_logo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* end of PRELOAD */

/* start of ERROR 404 */

.err_wrapper {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	height: 100%;
}

.error {
	background-color: #080c10;
	display: inline-block;
	padding: 30px;
	border-radius: 20px;
	margin: auto auto;
}

/* end of ERROR 404 */

/* start of HEADEAR STYLES */

header {
	width: 100%;
	height: 80px;
	background-color: #081010;
	border-bottom: 1px solid rgba(0,84,255,0.3);
}

.logo_header {
	height: 100%;
	display: inline-block;
	width: 33.33%;
}

.logo_header .header_img {
	height: 100%;
	padding: 10px;
	margin-left: 75px;
	float: left;
}

.logo_header img {
	height: 100%;
}


.logo_header a {
	font-size: 33px;
	margin: 0;
	display: inline-block;
	color: #737984;
	vertical-align: top;
}

.logo_header a:hover {
	color: #0054ff;
}

.logo_header h2 {
	font-size: 20px;
	margin: 0;
}

header .menu {
	display: inline-block;
	margin-left: 50px;
	height: 100%;
	vertical-align: top;
	text-align: center;
	width: 36%;
}

header .find {
	vertical-align: top;
}

header table {
	height: 100%;
	width: 100%;
}

.mobile_find_form table {
	height: 100%;
	width: 100%;
}

header tr {
	height: 100%;
}

header td {
	padding-left: 15px;
	height: 100%;
	vertical-align: middle;
	position: relative;
}

header td a {
	vertical-align: middle;
	font-weight: bold;
	padding-bottom: 7px;
	transition: 0.4s;
}

.mobile_slider td a {
	vertical-align: middle;
	font-weight: bold;
	padding-bottom: 7px;
	transition: 0.4s;
	z-index: 100;
}

.you {
	color: #cc0000;
	transition: 0.4s;
}

.tube {
	color: #ccc;
	transition: 0.4s;
}

a.yt:hover .you {
	color: #0054ff;
}

a.yt:hover .tube {
	color: #0054ff;
}

header td a:hover:after {
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);

    -webkit-transform-origin: -100% 0;
    -ms-transform-origin: -100% 0;
    transform-origin: -100% 0;
}

header td a:after {
    content: "";
    display: block;
    height: 4px;
    border-radius: 10px;
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: .4s -webkit-transform;
    -o-transition: .4s -webkit-transform;
    transition: .4s -webkit-transform;
    -webkit-transition: .4s transform;
    -o-transition: .4s transform;
    transition: .4s transform;
    -webkit-transform-origin: 100% 0;
    -ms-transform-origin: 100% 0;
    transform-origin: 100% 0;
    background: #0054ff;
    position: absolute;
    z-index: 333;
}

header td a.yt:after {
	width: 90%;
}

header td a.about:after {
	width: 84%;
}

header td a.support:after {
	width: 87%;
}

header td a.main:after {
	width: 86%;
}

header::selection {
	background-color: #0054ff;
	color: white;
	text-shadow: #6699ff 1px 1px 1px;
}

header .find {
	height: 100%;
	width: 22%;
	float: right;
	display: inline-block;
}

header input, .mobile_find_form input, .mob_menu_3 input {
	background-color: #202727;
	border: 0;
	color: #737984;
	border-radius: 2px;
	padding: 4px;
}

header button, .mobile_find_form button, .mob_menu_3 button {
	background-color: #202727;
	padding: 4px;
	border-radius: 2px;
	border: 0;
	color: #737984;
	transition: .2s;
	cursor: pointer;
}

header button:hover, table.support button:hover {
	border-radius: 0;
	color: #b9bcc1;
	background-color: #363c3c;
}

.mobile_find_form button:hover {
	border-radius: 0;
	color: #b9bcc1;
	background-color: #363c3c;
}

.mob_menu_3 button:hover {
	border-radius: 0;
	color: #b9bcc1;
	background-color: #363c3c;
}

input:focus, button:focus {
	outline: none;
}

header .mobile_find {
	display: none;
}

header .mobile_find img {
	height: 40px;
	width: 40px;
	display: inline-block;
	cursor: pointer;
}

.mobile_find_form {
	height: 80px;
	width: 100%;
	background-color: #081010;
	border-bottom: 1px solid rgba(0,84,255,0.3);
	display: none;
}

.mobile_menu {
	display: none;
}

.mobile_menu .menu_button {
	border-radius: 10000px;
	height: 100px;
	width: 100px;
	background-color: #4c87ff;
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 10;
}

.containerMobMenu {
    display: inline-block;
    height: 100%;
    width: 100%;
    margin: 30px 32px;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #ccc;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

.mobile_slider {
	width: 100%;
	height: 300px;
	background-color: #081010;
	display: none;
	border-bottom: 1px solid rgba(0,84,255,0.3);
	z-index: 222;
}

.mob_menu_1, .mob_menu_2, .mob_menu_3 {
	height: 33%;
	width: 100%;
}

.mob_menu_1 img {
	height: 100%;
}

.mob_menu_2 table, .mob_menu_3 table {
	width: 100%;
	height: 100%;
	font-weight: bold;
	font-size: 20px;
}

/* end of HEADER STYLES */

/* start of SUPPORT STYLES */

.text_on_support {
	font-size: 20px
}

table.support input::-moz-placeholder {
	color: #aaa;
}

table.support input::-webkit-input-placeholder {
	color: #aaa;
}

table.support {
	width: 100%;
	margin-top: 15px;
}

table.support textarea {
	height: 175px;
	width: 50%;
	margin-top: 15px;
	color: #fff;
	background-color: #4c5252;
	border: 0;
	resize: none;
}

table.support input, .alogin input {
	width: 40%;
	background-color: #4c5252;
	border: 0;
	color: #fff;
	border-radius: 2px;
	padding: 4px;
}

table.support button, .alogin button {
	background-color: #4c5252;
	padding: 4px;
	border-radius: 2px;
	border: 0;
	color: #fff;
	transition: .2s;
	cursor: pointer;
}

table.support button:focus, table.support input:focus, table.support textarea:focus, .alogin input {
	outline: none;
}

#mobile_menu_bg {
	width: 100%;
	background-color: black;
	height: 120px;
	display: none;
	top: 0;
	left: 0;
	z-index: -2;
}

/* end of SUPPORT STYLES */

/* ABOUTME STYLES */

.aboutme p {
	font-size: 18px;
}

.aboutme a {
	color: #F63A13;
}

.aboutme a:hover {
	color: #c42e0f;
}

.aboutme span {
	color: #ccc;
}

.aboutme {
	margin-top: 15px;
}

@media screen and (max-width: 1214px) {
	.logo_header .site_desc {
		display: none !important;
	}
	.logo_header .header_img {
		margin-left: 60%;
	}
	.logo_header {
		width: 20%;
	}

	header .menu {
		width: 50%;
		font-size: 18px;
	}

	header .find {
		width: 20%;
	}

	header .mobile_find {
		display: block;
	}

	header .find_form {
		display: none;
	}
}

@media screen and (max-width: 939px) {
	header .menu {
		font-size: 15.9px;
	}

	.logo_header .header_img {
		margin-left: 5%;
	}

	.logo_header {
		width: 15%;
	}

	header .menu {
		width: 63%;
		margin: 0;
	}

	header .find table {
		width: 100%;
	}

	header .find img {
		float: right;
		margin-right: 15%;
	}
}

@media screen and (max-width: 738px) { /* MOBILES */
	header {
		display: none;
	}

	.mobile_menu {
		display: block;
	}

	#mobile_menu_bg {
		position: fixed;
		display: block;
	}

	.container-fluid {
		margin-top: 120px;
	}
}

@media screen and (max-width: 450px) {
	.mob_menu_2 table {
		font-size: 16px;
	}
}

@media screen and (max-width: 380px) {
	.mob_menu_2 table {
		font-size: 12px;
	}
}
	</style>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
	<title>SiteTitle :: Тестовая страница</title>
</head>
<body>

	<!-- PRELOAD PAGE -->
	<div id="p_prldr">
		<div class="contpre">
			<img src="https://pngicon.ru/file/uploads/google-256x256.png" alt="Logo" width="50" class="preload_logo">
			<p>Подождите,</p>
			<small>
				<p>идёт загрузка</p>
			</small>
		</div>
	</div>

	<script type="text/javascript">
		$(window).on('load', function () {
		var $preloader = $('#p_prldr'),
			$svg_anm   = $preloader.find('.svg_anm');
			$svg_anm.fadeOut();
		$preloader.delay(100).fadeOut('slow');
	});</script>
	<!-- /PRELOAD PAGE -->

	<header id="header">
	
	<div class="logo_header text-center">
		<a href="/" class="header_img"><img src="https://pngicon.ru/file/uploads/google-256x256.png" alt="Logotype"></a>
		<div style="display: inline-block; height: 100%" class="site_desc">
			<a href="/">SiteTitle</a>
			<h2>Сайт о программировании</h2>
		</div>
	</div>

	<div class="menu">
		<table>
			<tr>
				<td>
					<a href="/" class="main">ГЛАВНАЯ</a>
				</td>
				<td>
					<a href="https://youtube.com" class="yt">КАНАЛ <span class="youtube"><span class="you">YOU</span><span class="tube">TUBE</span></span></a>
				</td>
				<td>
					<a href="about" class="about">
						ПРО НАС
					</a>
				</td>
				<td>
					<a href="support" class="support">
						ПОДДЕРЖКА
					</a>
				</td>
			</tr>
		</table>
	</div>

	<div class="find">
		<table>
			<tr>
				<td>
					<form class="find_form" method="GET" action="search">
						<input name="s" placeholder="Искать здесь..." type="search" minlength="3" maxlength="30" autocomplete="off" required="">
						<button type="submit">Найти</button>
					</form>
					<div class="mobile_find">
						<img src="http://pngimg.com/uploads/loupe/loupe_PNG10024.png" alt="Поиск" onclick="mobileFind()">
					</div>
				</td>
			</tr>
		</table>
	</div>

	</header>

	<div class="mobile_find_form">
		<table>
			<tr>
				<td>
					<form class="find_form text-center" method="GET" action="search">
						<input name="s" placeholder="Искать здесь..." type="search" minlength="3" maxlength="30" autocomplete="off" required="">
						<button type="submit">Найти</button>
					</form>
				</td>
			</tr>
		</table>
	</div>

	<div id="mobile_menu_bg"></div>

	<div class="mobile_slider">
		<div class="mob_menu_1 text-center">
			<a href="/" class="header_img"><img src="https://pngicon.ru/file/uploads/google-256x256.png" alt="Logotype"></a>
		</div>
		<div class="mob_menu_2">
			<table class="text-center">
				<tr>
					<td>
						<a href="/">ГЛАВНАЯ</a>
					</td>
					<td>
						<a href="https://www.youtube.com/channel/UC6PGsdUw2eeVbUWpTevGUEQ" class="yt">КАНАЛ <span class="youtube"><span class="you">YOU</span><span class="tube">TUBE</span></span></a>
					</td>
					<td>
						<a href="about" class="about">
							ПРО НАС
						</a>
					</td>
					<td>
						<a href="support" class="support">
							ПОДДЕРЖКА
						</a>
					</td>
				</tr>
			</table>
		</div>
		<div class="mob_menu_3">
			<table>
				<tr>
					<td>
						<form class="find_form text-center" method="GET" action="search">
							<input name="s" placeholder="Искать здесь..." type="search" minlength="3" maxlength="30" autocomplete="off" required="">
							<button type="submit">Найти</button>
						</form>
					</td>
				</tr>
			</table>
		</div>
	</div>

	<div class="mobile_menu" id="mobile_button" onclick="changeMobileMenu(this, '.mobile_slider')">
		<div class="menu_button">
			<div class="containerMobMenu">
				<div class="bar1"></div>
				<div class="bar2"></div>
				<div class="bar3"></div>
			</div>
		</div>
	</div>

	<br>

	<div class="container-fluid" id="container">

		<style>
	h1 {
		font-size: 28px;
	}
	h2 {
		font-size: 20px;
	}
	p {
		font-size: 16px;
		margin: 0;
	}
</style>

<h1 class="text-center">Про нас</h1>
<br>
<h2><span style="color: #aaa">SiteTitle</span> - это сайт о программировании</h2>
<h2>Тут собраны различные шаблоны, PSD-макеты, скрипты и так далее</h2>
<h2>Короче говоря, всё для веб-разработчика :)</h2>
<p>Сайт не преследует цели нарушить чьи-то авторские права. Если вы являетесь владельцем контента, который представлен на сайте, обратитесь в поддержку - мы удалим этот контент.</p>
<div class="aboutme">
	<h1 class="text-center">Автор проекта: <span>Ваше имя</span></h1>
	<p class="text-center">Мои контакты (разработка сайтов на заказ): <br>
		<a href="https://web.telegram.org/">Telegram</a>
	</p>
</div>

	</div>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                function changeMobileMenu(x, objName) {
	x.classList.toggle("change");
	if ( $(objName).css('display') == 'none' ) {
		$(objName).animate({height: 'show'}, 300);
		$("#container").animate({'margin-top': '0'}, 300);
	} else {
		$(objName).animate({height: 'hide'}, 300);
		$("#container").animate({'margin-top': '120'}, 300);
	}
};

function mobileFind() {
	if ( $('.mobile_find_form').css('display') == 'none' ) {
	$('.mobile_find_form').animate({height: 'show'}, 250);
	} else {
	$('.mobile_find_form').animate({height: 'hide'}, 250);
	}
};
              
            
!
999px

Console