top of page

Part 1 Bootstrap 5 : Headers



<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <style>
    h1.a {
      text-align: right;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
    }

    h1.b {
    text-align: left;
    }

    div.custom1 {
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        background-color: rgb(77, 20, 223);
        color: #fefefe;
        margin-top:0.5%;
        padding: 0.5%;
    }
  </style>

</head>
<body>

<div class="container bg-dark text-white">
  <h1>Welcome to ElectronicsEternity</h1>
</div>

<div class="container col-7 mt-3 bg-dark text-white">
  <h1>Welcome to ElectronicsEternity</h1>
</div>

<div class="container mt-3 p-3 bg-dark text-white text-center">
  <h1>Welcome to ElectronicsEternity</h1>
</div>

<div class="container p-3 mt-3 bg-dark text-white">
  <h1 class = "a">Welcome to ElectronicsEternity</h1>
</div>

<div class="container p-3 mt-3 bg-dark text-white p-3">
  <h1 class = "b">Welcome to ElectronicsEternity</h1>
</div>

<div class="container-fluid mt-3 p-3 bg-dark text-white">
  <h1>Welcome to ElectronicsEternity</h1>
</div>

<div class="container-fluid mt-3 p-3 bg-dark text-white">
  <h1 class = "a">Welcome to ElectronicsEternity</h1>
</div>

<div class="custom1">
  <h1>Welcome to ElectronicsEternity</h1>
</div>

<!-- 

  -->

</body>
</html>

For more detailed instruction, feel free to check out my YouTube video below



Comentarios


bottom of page