I have the following code and I am trying to create two columns with a minimum width for mobile browser support.
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<div class="container">
<div class="row">
<div class="col-6" style="background-color: blue;min-width: 250px;">A</div>
<div class="col-6" style="background-color: red;min-width: 250px;">B</div>
<div class="col-12" style="background-color: green;min-width: 500px">
C
</div>
</div>
</div>
On screens smaller than 500px, the first and second divs wrap onto two lines instead of remaining in the same row.
This is how it looks on a small screen:
https://i.sstatic.net/X4c3g.png
This is how it should look on a small screen (as it appears on a larger screen):
https://i.sstatic.net/758zc.png
How can I resolve this issue?
Thank you
Edit
In my actual code, I have used bootstrap order. So, on larger screens, the order is A C B, while on smaller screens it is A B C. Therefore, I cannot remove the row class.
<meta name="viewport" content="width=device-width">
This tag needs to be added to ensure mobile support.