'Issues using img with Bootstrap Grid System
I am using a basic Grid System to create a little "Portfolio" where I put images (4 columns and more or less 6 rows), and it looks like this
<div class="container">
<div class="row">
<div class="col-sm">
<img src="url" alt="1st Event" height="200" width="200"/>
</div>
<div class="col-sm">
<img src="url" alt="2nd Event" height="200" width="200"/>
</div>
<div class="col-sm">
<img src="url" alt="3rd Event" height="200" width="200"/>
</div>
</div>
</div>
But the grid doesn't show up in rows and columns (it gets shown in only a single column, as you can see on the picture here), what is causing this problem?
Thanks.
Solution 1:[1]
Try this:
<div class="container">
<div class="row">
<div class="col-md-3">
<img src="url" alt="1st Event" height="200" width="200"/>
</div>
<div class="col-md-3">
<img src="url" alt="2nd Event" height="200" width="200"/>
</div>
<div class="col-md-3">
<img src="url" alt="3rd Event" height="200" width="200"/>
</div>
<div class="col-md-3">
<img src="url" alt="4th Event" height="200" width="200"/>
</div>
</div>
</div>
Solution 2:[2]
Apple (macOS and iOS) software often does not create WAVE/RIFF files with just a canonical Microsoft 44-byte header at the beginning. Those Wave files can instead can use a longer header followed by a padding block.
So you need to use the full WAVE RIFF format parsing specification instead of just reading from a fixed size 44 byte struct.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | RN92 |
| Solution 2 | hotpaw2 |
