I'm attempting to design a rectangle filled with colorful boxes
Here is the code I'm using:
<div class="col-md-3" >
<div id="myViewport" style="height: 700px; width: 50px; padding: 10px; border: 5px solid gray; margin: 0;">
<div style="height:10px;background-color:rgb(0,0,0);" id='pass0'/>
<div style="height:10px;background-color:rgb(0,0,0);" id='pass1'/>
<div style="height:10px;background-color:rgb(0,0,0);" id='pass2'/>
<div style="height:10px;background-color:rgb(0,0,0);" id='pass3'/>
<div style="height:10px;background-color:rgb(0,0,0);" id='pass4'/>
<div style="height:10px;background-color:#FFA500;" id='pass5'/>
<div style="height:10px;background-color:#FFA500;" id='pass6'/>
</div>
</div>
I'm aiming for a design similar to this:
https://i.sstatic.net/vKe5U.png
However, I can't seem to get the boxes to appear. Can anyone point out what I might be doing incorrectly?