I am trying to get some text to nicely float over some images. The problem is that I feel like what I am doing is both way too much work/cluttered, and it is not formatting correctly.
Looking for help in making this layout smoother, and simpler. I also need to be able to reference the first number of each section so that I can update it on click via AngularJS.
What I want is the text to appear like this
This is what I am attempting thus far: PLUNKER DEMO
Again, I am trying to find a way to position this text over all the icons nicely like the above example, along with being able to reach the first number for events.
The "end look" is the following, I just need help formatting the first row so that I can see how it should be done for the rest.
Raw code: PLUNKER DEMO
HTML
<div ng-controller="ImagesCtrl">
<span class="section" style="background:rgba(178, 0, 0, 0.7)">
<img id="offense1-0" src={{pictures[0]}}>
<img id="offense1-1" src={{pictures[1]}}>
<img id="offense1-2" src={{pictures[2]}}>
<img id="offense1-3" src={{pictures[3]}}>
</span>
<span class="section" style="background:rgba(30, 154, 225, 0.7)">
<img id="offense1-4" src={{pictures[4]}}>
<img id="offense1-5" src={{pictures[5]}}>
<img id="offense1-6" src={{pictures[6]}}>
<img id="offense1-7" src={{pictures[7]}}>
</span>
<span class="section" style="background:rgba(30, 154, 54, 0.7)">
<img id="offense1-8" src={{pictures[8]}}>
<img id="offense1-9" src={{pictures[9]}}>
<img id="offense1-10" src={{pictures[10]}}>
<img id="offense1-11" src={{pictures[11]}}>
</span>
<div class="number"><span id="1-0">0</span>/3</div>
<div class="number"><span id="1-1">0</span>/3</div>
<div class="number"><span id="1-2">0</span>/3</div>
<div class="number"><span id="1-3">0</span>/3</div>
<div class="number"><span id="1-4">0</span>/3</div>
<div class="number"><span id="1-5">0</span>/3</div>
<div class="number"><span id="1-6">0</span>/3</div>
<div class="number"><span id="1-7">0</span>/3</div>
<div class="number"><span id="1-8">0</span>/3</div>
<div class="number"><span id="1-9">0</span>/3</div>
<div class="number"><span id="1-10">0</span>/3</div>
<div class="number"><span id="1-11">0</span>/3</div>
</div>
CSS
div {
background:black;
height:500px;
}
.section {
text-align:center;
padding:0px 15px 0px 15px;
height: 100%;
display: inline-block;
}
img {
margin-left:3px;
margin-top:3px;
-webkit-box-shadow: 0px 0px 7px #7FFF00;
-moz-box-shadow: 0px 0px 7px #7FFF00;
box-shadow: 0px 0px 7px #7FFF00;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-khtml-border-radius: 8px;
border-radius: 8px;
}
.number {
color:yellow;
margin:0px;
padding:0px;
padding-right:30px;
background:transparent;
}