Hey there! I've been trying to center an image within a "div" tag using Bootstrap, but despite my best efforts and reading through various resources, I haven't been able to crack it.
* {
margin: 0;
padding: 0;
}
.people-one {
width: 100%;
height: 100%;
}
body {
background-color: #b2b2b2;
}
.paddimages {
padding: 0;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="login.css"><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"></head><body>
<div class="container-fluid>
<div class="row>
<div class="col-4 position-relative>
<div class="position-absolute top-50 start-50 translate-middle>
<img class="people-one" src="https://avatars.mds.yandex.net/i?id=e67c20f98bdc512c5d3bc20c140f8fac-5719595-images-taas-consumers&n=27&h=384&w=480" alt="">
</div>
</div>
<div class="col-8">
<p>Text</p>
</div>
</div>
Appreciate any help you can offer. Thank you!