Pesquisar neste blog

17/11/2022

Colunas com Bootstrap em HTML

<!DOCTYPE html>
<html lang="pt-br">
<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">
<title>Bootstrap</title>

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/
bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl
0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
crossorigin="anonymous">
<meta http-equiv="refresh" content="3"><!--atualiza a página a cada 3 s-->

</head>
<body> <!--text inverte a cor do texto-->
<div class="container-fluid"> <!-- Centraliza todo o conteúdo dessa div-->
<h1>Blog da engenharia cotidiana</h1>
<div class="row bg-primary">
<div class="col bg-warning col-12 col-xxl-2
col-xl-4 col-lg-6 col-md-8 col-sm-10"><!--xl=em 1 resolução de 6 espaço ocupe apenas 4-->
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
</div>
<div class="col bg-danger col-12 col-xxl-2
col-xl-4 col-lg-6 col-md-8 col-sm-10">
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/
bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+
mo//f6V8Qbsw3"
crossorigin="anonymous">
</script>
</body>
</html>


Saída gerada










Nenhum comentário: