Home > AI > Language > CSS >

display: flex

Example 1:

<!DOCTYPE html>
<html>
  <head>
    <title>Parcel Sandbox</title>
    <meta charset="UTF-8" />
  </head>

  <body>
    <div class="flow_column">
      <p>1</p>
      <p>2</p>
    </div>

    <style>
      .flow_column {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
    </style>
  </body>
</html>

Leave a Reply