2
I’m trying to center the image but I was not successful, I was able to center, but I don’t know how to put in the middle of the div
<!doctype html>
<html lang="pt-br">
<head>
<title>Bootstrap - Alinhamento do grid</title>
<style type="text/css">
.marcador {
background: #fe9d9d;
border: 1px solid #f94646;
height: 420px;
}
.marcador-container {
background: #5bf946;
border: 1px solid #36ae26;
}
.borda{
border: 1px solid blue;
}
</style>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Alinhamento vertical (align-items-ALINHAMENTO: start, center, end)</h2>
<div class="row marcador align-items-center">
<div class="col">
<img class="img-fluid" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTN65ED_ansEu-oVmEbiRV2a06nsb1SYsWG2x8RwcJ9bUnFmcXNCw">
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>