EDIT
I've added this css to span.label
using this fiddle
span.label{
width:100px; color:#FFFFFF;
background-color:#F43B05;
float:right; padding:3px;
position:absolute; top:50px; left:5px;
}
And I've got this:
I need to put a label on an image using bootstrap.
I have this image with a label:
And here is the code for it:
<span class="label label-success">4</span>
<input class="img1" type="image" style="width:60px;height:60px" src="../images/molar_left_t.png" id="oone" name="one" alt="button"/>
<div title="3rd Molar - Upper Rigth Jaw" id="div_one" class="collapse"><?php echo $resTeeth['one'] ?>
</div>
But this is not what I want. What I want is to add this number 4
green label on top of the image and not on the side of it.
I tried this:
<span class="label label-danger">4
<input class="img1" type="image" style="width:60px;height:60px" src="../images/molar_left_t.png" id="oone" name="one" alt="button"/>
<div title="3rd Molar - Upper Rigth Jaw" id="div_one" class="collapse"><?php echo $resTeeth['one'] ?>
</div>
</span>
And I've got this: