-3

enter image description here

I have a page where row is divided into two columns. In mobile view, I want to display column 2 first and then column 2.

zmag
  • 7,825
  • 12
  • 32
  • 42
Priti Rathod
  • 117
  • 1
  • 10

1 Answers1

0

Are you looking for something like this? If yes,you can do that using order-sm-**

<!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 rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>

<body>

  <div class="container-fluid">

    <div class="row">
      <div class="col-sm-6 order-sm-12">column 2</div>
      <div class="col-sm-6 order-sm-1">column 1</div>
    </div>
  </div>

</body>

</html>
Sai Manoj
  • 3,809
  • 1
  • 14
  • 35