I have an image (it can vary its dimensions) in base 64 that I have saved in the database, I want to adapt it to a div
, but it is cut, as it would do so that in case it exceeds put a scroll
. I've already put the overflow
in css
, but it does not work for me since it's not the overflowing count if it's not the background
of the same div
. With the img
it does not help me because the idea is to put on divs
with some buttons.
<ul class="nav nav-tabs">
@foreach (var Casa in ViewBag.PlanoCasa)
{
<li><a data-toggle="tab" href="#@Casa.Id">[email protected]</a></li>
}
</ul>
<div class="tab-content">
@foreach (var Casa in ViewBag.Casa)
{
<div class="tab-pane fade active" id="@Casa.Id">
<h3>Menu 1</h3>
<div class="laclase" style="max-width: 100%; max-height: 100%; background-image:url(data:image/png;base64,@Casa.Imagen)">
<!--<img src="data:image/png;base64, @Casa.Imagen" />-->
</div>
</div>
}
</div>