Getting stuck with the thumbnail

So i tried to make this object connecting to the thumbnail that show the number. The problem is that if i try to combine the value and the thumbnail (thumby) either one of the two goes missing.

    <div class="thumby"Value:  id="value"/> just showed the thumbnail but not the value
<div span="thumby" value:  id="value"/> just showed the value but not the object

So then i tried to just make the black thumbnail go above the thing but…

top: 10;
border-bottom: 10px;

Those did’t work either whatever else i tried it only transformed inside the nav bar