Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
2.5 kB
2
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Three Sections Page without Bootstrap</title>
  <style>
    body, html {
      margin: 0;
      padding: 0;
      height: 100%;
    }

    .container {
      display: flex;
      flex-direction: column;
      height: 100vh; /* 100% of the viewport height */
    }

    .row {
      margin-bottom: 1px; /* Space between border lines */
    }

    .section {
      box-sizing: border-box;
      padding: 20px;
      text-align: center;
      height: calc((100vh - 2px) / 3); /* Equal height for each section */
      border-bottom: 1px solid #ddd; /* Border between sections */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .section1 {
      background-color: #5D8AA8; /* Air Superiority Blue */
      color: white; /* Text color for better contrast */
    }

    .section2 {
      background-color: #CFD3D4; /* Pale Green */
     
    }

    .section3 {
      background-color: #5D8AA8; /* Light Orange */
      color: white;
    }

    /* Remove border from the last section */
    .row:last-child .section {
      border-bottom: none;
    }

    /* Style for links */
    .section a {
      margin: 0 10px; /* Spacing around links */
      color: inherit;
      text-decoration: none;
    }

    /* Horizontal alignment for links */
    .section a:not(:last-child) {
      margin-right: 10px;
    }

    /* Horizontally align links within the section */
    .section a {
      display: inline-block;
    }
  </style>
</head>
<body>

  <div class="container">
    <div class="row">
      <div class="section section1">
        <h2>ATM</h2>
        <span>
        <a href="#">Link 1</a>
        <a href="#">Link 2</a>
        <a href="#">Link 3</a>
        </span>
      </div>
    </div>

    <div class="row">
      <div class="section section2">
        <h2>VAULT</h2>
       <span> <a href="#">Link 4</a>
        <a href="#">Link 5</a>
        <a href="#">Link 6</a>  </span>
      </div>
    </div>

    <div class="row">
      <div class="section section3">
        <h2>CENTRAL PLEDGE</h2>
        <span>
        <a href="#">Link 7</a>
        <a href="#">Link 8</a>
        <a href="#">Link 9</a>
        </span>
      </div>
    </div>
  </div>

</body>
</html>
Leave a Comment