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. 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

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="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
	<link rel="stylesheet" href="css/main.css">
</head>
<body>
	<header>
		<div class="top-bar-small">
			<div class="header-content">
				<div class="left">
					<a href="">Главная</a>
					<a href="">О компании</a>
					<a href="">Доставка</a>
					<a href="">Оплата</a>
					<a href="">Блог</a>
					<a href="">Контакты</a>
					<a href="">GG</a>
				</div>
				<div class="right">
					<span class="change-city">Выберите город:</span>
					<span class="city">Краснодар</span>
					<button>Где мой заказ?</button>
				</div>
			</div>
		</div>
		<div class="top-bar">
			<div class="header-content">
				<div class="item logo"><span>MASLOAFRICA<span class="dot">.</span><span class="com">com</span></span></div>
				<div class="item phone"><span class="zone">8 (800)</span>&#160;234-77-77<br><span class="text">Бесплатно по России</span></div>
				<div class="item"></div>
				<div class="item like"></div>
				<div class="item cart"><span>В вашей корзине<br>1 товар</span></div>
			</div>
		</div>
		<div class="top-bar-menu">
			<div class="header-content">
				<div class="left">
					<a href="">SALE</a>
					<a href="">Лицо</a>
					<a href="">Волосы</a>
					<a href="">Тело</a>
					<a href="">Ароматы</a>
					<a href="">Премиум</a>
					<a href="">Organic</a>
					<a href="">Бренды</a>
				</div>
				<div class="right"></div>
			</div>
		</div>
	</header>
</body>
</html>
              
            
!

CSS

              
                .top-bar .header-content, .top-bar .item, .top-bar-small .left, .top-bar-small .right, .top-bar-small .right button, .top-bar-menu .left, .top-bar-menu .right, .header-content {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif; }

a {
  text-decoration: none; }

button {
  border: none; }

.top-bar {
  height: 120px;
  background: #fff;
  box-shadow: 0 1px 0 #f1f1f1; }
  .top-bar .header-content {
    align-items: center; }
  .top-bar .item {
    align-items: center;
    height: 60px; }
  .top-bar .logo {
    color: #212121;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1.56px;
    text-transform: uppercase; }
    .top-bar .logo span.dot {
      font-weight: 300; }
    .top-bar .logo span.com {
      font-weight: 300;
      font-size: 18px;
      letter-spacing: 1.17px; }
  .top-bar .phone span.text {
    color: #212121;
    font-size: 13px;
    letter-spacing: 0.65px; }
  .top-bar .cart span {
    position: relative;
    padding: 2px 0 0 50px;
    font-size: 13px; }
    .top-bar .cart span::before {
      position: absolute;
      top: 2px;
      left: 0;
      content: '';
      width: 35px;
      height: 30px;
      background: url(../img/cart.svg); }
  .top-bar .like {
    width: 33px;
    height: 30px;
    padding: 30px 36.5px;
    background: url(../img/hearth.svg);
    background-repeat: no-repeat;
    background-position: center center;
    border-right: 1px solid #ebedee;
    border-left: 1px solid #ebedee; }
  .top-bar-small {
    height: 40px;
    background: #ecf0f1; }
    .top-bar-small .left {
      height: 100%;
      align-items: center; }
      .top-bar-small .left a {
        color: #212121;
        padding: 5px 20px 6px 0;
        margin-right: 20px;
        border-right: 1px solid #d7dbdd;
        font-size: 13px; }
    .top-bar-small .right {
      height: 100%;
      align-items: center; }
      .top-bar-small .right button {
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 200px;
        color: #fff;
        background: #c1878c;
        font-size: 13px; }
  .top-bar-menu {
    height: 50px;
    background: #343434; }
    .top-bar-menu .left {
      height: 100%;
      align-items: center; }
      .top-bar-menu .left a {
        color: #fff;
        padding: 5px 30px 4px 0;
        margin-right: 30px;
        border-right: 1px solid #787b7d;
        font-size: 13px; }
    .top-bar-menu .right {
      height: 100%;
      align-items: center; }

.header-content {
  justify-content: space-between;
  width: 92%;
  max-width: 1170px;
  height: 100%;
  margin: 0 auto; }

.change-city {
  color: #212121;
  opacity: 0.5;
  margin-right: 15px; }

.city {
  color: #c1878c;
  text-decoration: underline;
  font-size: 14px;
  margin-right: 40px; }
.header-content .phone{
  display: block;
}
              
            
!

JS

              
                
              
            
!
999px

Console