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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <header class="header">
<div class="nav-container">
					<div class="logo_nav">
						<a href="#"><img class="logo" alt="logo" src="https://images.vexels.com/media/users/3/137627/isolated/lists/012f7bd53633f5a6e78e60ea08948c55-minimalist-infinity-logo.png"></a>
					</div>

					<div class="bar_menu">
						<ul class="menu">
							<li class="menu_item">
								<a href="#" class="menu_link">How it works</a>
							</li>
							<li class="menu_item">
								<a href="#" class="menu_link">Benefits</a>
							</li>
							<li class="menu_item">
								<a href="#" class="menu_link">Job Listings</a>
							</li>

						</ul>
					</div>

					<div class="bar_button">
						<a href="#">Log in</a>
					</div>
				</div>
  <div class="main-container">
					<div class="main_left left-block">
						<h1>The New Title <br><b>of Product</b></h1>
						<p>Start working with the best products <br>and find a copy or something big</p>
						<a href="#">Try it!</a>
					</div>

					<div class="main_right right-block">
					</div>
				</div>
</header>

<section class="about">
			<div class="container">
				<div class="how_works">
					<h2>How to find a product</h2>
					<h4 class="sub uppercase">SUB TITLE</h4>
					<ul class="how_items">
						<li class="how-item">
							<h5>Customize Your Profile</h5>
							<p>Create your profile in couple of clicks and show the right information</p>
						</li>
						<li class="how-item">
							<h5>Find the product you are liked</h5>
							<p>Send us your preferencies to get the better match and  find a product you are liked. Communicate with people.</p>
						</li>
						<li class="how-item">
							<h5>Get benefits</h5>
							<p>Refer friends or get invitation on the interview and get bonus</p>
						</li>
					</ul>
				</div>
			</div>
		</section>
              
            
!

CSS

              
                *{
  box-sizing:border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}

body {
  max-width: 1140px;	
	min-width: 320px;
	margin: 0 auto;
}

a {
	text-decoration: none;
	color: #3E3E3E;
}

a:hover {
	color: #512BE7;
}

li {
  list-style: none:
}

h4 {
  text-align: center;
}

/* ===== NAVIGATION =======*/
.header {
	position: relative;
  height: 100vh;
}

.nav-container {
	display:flex;
  justify-content: space-between;
  align-items:center;
  
}

.logo {
	display: inline-block;
	vertical-align: top;
	height: 51px;
	margin-top: 4px;
}

.menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu li {
	display: inline-block;
	margin-right: 25px;
}

.btn-nav {
	display: inline-block;
	border: 1px solid;
	width: 160px;
	height: 45px;
	background-color: red;
	border-radius: 5px;
	vertical-align: top;

	text-align: center;
	font-size: 0.9em;
	color: #ffffff;
	padding-top: 12px;
	box-shadow: ;
}

.btn {
	display: inline-block;
	background-color: red;
	border-radius: 5px;
	vertical-align: top;

	text-align: center;
	color: #ffffff;
	font-weight: bold;
}

.btn-primary {
	width: 300px;
	height: 70px;
	font-size: 1em;
	line-height: 4.1;
	margin-top: 25px;
	margin-bottom: 30px;		
}
/* ===== #1 BLOCK =======*/
/* ===== #1 BLOCK =======*/
.main-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;

  outline: 2px dashed orange;
}

.main_left {
  width: 40%;

  outline: 2px dashed green;
}

/*  НЕ РАБОТАЕТ  */
.main_right {
  width: 50%;
  min-height: 50%;
  background-image: url("https://startly.web3templates.com/demo/software/images/screen2.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  
  outline: 2px dashed red;
}



/* ===== #2 BLOCK =======*/

.how_works {
	width: 100%;				/* Как сделать ширину так, чтобы при уменьшении экрана оставались отступы по бокам? То есть ширина блока должна быть 80%. Но если уменьшить сейчас до 80%, то она будет слишком маленькой из-за того, что УЖЕ есть отступы по бокам */
	height: 500px;
	margin: 0 auto;
	margin-top: 200px;			/*Как сделать отступы между блоками более правильными? чтобы было больше места и адаптивность */
	border-radius: 10px;

	box-shadow: 10px 18px 54px 6px #C3C3C3;
}

.how_works h2 {
	padding-top: 60px;
	text-align: center;
	margin-bottom: 0;
}

.how_works h4 {
	margin-top: 10px;
}

.how_items {
	display: flex;
	justify-content: space-around;
	margin-top: 55px;
	margin-left: 50px;
}

.how-item {
	width: 225px;			/*Как правильно делать ширину буллета? стоит ли прикреплять к px? */
	position: relative;
}

.how-item:last-child h5{
	line-height: 2.6;
}

.how-item:first-child::before {
	content: "1";	
	position: absolute;
	top: 20px;
	left: -80px;	
	font-size: 1em;
	background-color: blue;
	color: #ffffff;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	text-align: center;
	line-height: 3.7;
}

.how-item:nth-child(2)::before {
	content: "2";	
	position: absolute;
	top: 20px;
	left: -80px;	
	font-size: 1em;	
	background-color: blue;
	color: #ffffff;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	text-align: center;
	line-height: 3.7;
}

.how-item:last-child::before {
	content: "3";	
	position: absolute;
	top: 20px;
	left: -80px;	
	font-size: 1em;
	background-color: blue;
	color: #ffffff;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	text-align: center;
	line-height: 3.7;
}
              
            
!

JS

              
                
              
            
!
999px

Console