I'm facing some confusion with the behavior of Bootstrap. This page suggests that for a 3x3 grid, one could use code similar to the following:
<div class="container">
<div class="row">
<div class="col align-self-start">
One of three columns
</div>
<div class="col align-self-center">
One of three columns
</div>
<div class="col align-self-end">
One of three columns
</div>
</div>
</div>
However, when I attempted the above code:
<div class="container">
<div class="row">
<div class="col align-self-center">
<img src="~/images/UpArrow.png" />
</div>
</div>
<div class="row">
<div class="col align-self-start">
<img src="~/images/LeftArrow.png" />
</div>
<div class="col align-self-center">
<img src="~/images/Background.png" />
<textarea>test</textarea>
</div>
<div class="col align-self-end">
<img src="~/images/RightArrow.png" />
</div>
</div>
<div class="row">
<div class="col align-self-center">
<img src="~/images/DownArrow.png" />
</div>
</div>
</div>
The arrow images stacked vertically instead of in a grid formation. To resolve this, I altered my approach as follows:
<div class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3">
<img src="~/images/UpArrow.png" />
</div>
</div>
<div class="row">
<div class="col-md-3">
<img src="~/images/LeftArrow.png" />
</div>
<div class="col-md-3">
<img src="~/images/Background.png" />
<textarea>test</textarea>
</div>
<div class="col-md-3">
<img src="~/images/RightArrow.png" />
</div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col align-self-center">
<img src="~/images/DownArrow.png" />
</div>
</div>
</div>
My question is: why did my initial approach fail? Is there another method aside from the one I've settled on that would work better to achieve this layout?