Answer the question
In order to leave comments, you need to log in
I am writing on Bootstrap on a PC, everything is OK, I can’t implement an adaptive. How can I do it?
Here is a simple layout for the experience
Section issues Join us on Instagram
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./css/bootstrap.min.css" />
<link rel="stylesheet" href="./css/style.css" />
<title>Item</title>
</head>
<body>
<main>
<section class="Our-services">
<div class="container">
<h2 class="Our-service-title">Наши услуги</h2>
<div class="row d-flex justify-content-between">
<div class="col-md-4 mb-4 col-sm-12">
<div
class="card justify-content-center align-items-center"
style="background-image: url(./img/Our-service/01.jpg)"
>
<p class="card-text text-center">Загородный дом</p>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div
class="card justify-content-center align-items-center"
style="background-image: url(./img/Our-service/03.jpg)"
>
<div
class="card-body d-flex flex-column justify-content-center align-items-center"
>
<p class="card-text text-center">Квартира</p>
<button class="main-btn">Посмотреть</button>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div
class="card justify-content-center align-items-center"
style="background-image: url(./img/Our-service/02.jpg)"
>
<p class="card-text text-center">Нежилые <br />помещения</p>
</div>
</div>
</div>
</div>
</section>
<section class="Join-Instagram">
<div class="container">
<h2 class="Join-Instagram-title">
Присоединяйтесь к нам <br />
в Instagram
</h2>
<div class="row">
<div class="col">
<img src="./img/Join-Instagram/01.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/02.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/03.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/04.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/05.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/06.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/07.jpg" />
</div>
<div class="col">
<img src="./img/Join-Instagram/08.jpg" />
</div>
</div>
</div>
<div
class="btn-instagram d-flex align-items-center justify-content-center"
>
<button class="main-btn">Присоедениться</button>
</div>
</section>
</main>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/main.js"></script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Section issues Follow us on Instagram
col
and col-md-4
behave completely differently in terms of adaptability due to the "magic" sm suffix Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question