I am trying to get a text inside a circle which text size behave respectively to its outer div width. The text shouldn't overflow outside of the circle in every width and also the circle should be responsive as respectively to the width of the image.
The text field is dynamic and also it is multi-language so in German it will be "Wärmflaschen" so the circle also needs to be a fixed as in both language but text size should only very as of the circle.
Snippet:
.em-site1 img {
width: 100%
}
.em-site-links-left-block {
background-color: #eb8677;
opacity: 0.8;
text-align: center;
color: white;
white-space: nowrap;
border-radius: 50%;
padding: 10%;
bottom: 5%;
position: absolute;
left: 30%;
}
.em-site-links-left-block h3 {
margin: 5px -40px;
font-size: 1.9em;
}
<div class="container">
<div class="col-md-4 col-sm-4 col-xs-12 box em-site1">
<img src="http://emosan.grafikpeople.com/wp-content/uploads/2016/06/Warmflasxhen_620x570_acf_cropped_620x570_acf_cropped.jpg">
<div class="em-site-links-left-block">
<h3 class="resize">Bouteilles <br> d'eau chaude</h3>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12 box em-site1">
<img src="http://emosan.grafikpeople.com/wp-content/uploads/2016/06/Warmflasxhen_620x570_acf_cropped_620x570_acf_cropped.jpg">
<div class="em-site-links-left-block">
<h3 class="resize">Bouteilles <br> d'eau chaude</h3>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12 box em-site1">
<img src="http://emosan.grafikpeople.com/wp-content/uploads/2016/06/Warmflasxhen_620x570_acf_cropped_620x570_acf_cropped.jpg">
<div class="em-site-links-left-block">
<h3 class="resize">Bouteilles <br> d'eau chaude</h3>
</div>
</div>
</div>
Also you can view my code here. I have tried giving css with media query and with different class as of multi-language but cannot get the right solution but it seems possible with java-script or css doesn't matter.