I'm in the beginning stages of my 1st bootstrap site, and can't remember how to pass the document.getElementByClass("mydiv").offsetWidth
to the CSS in order to dynamically scale the SVG images contained in it.
The HTML:
<div class="col-3 col-sm-3 col-lg-3">
<div class="panel">
<div class="panel-heading">
<h2 >Title</h2>
</div> <!-- end panel-heading -->
<a href="link.html"><img src="images/image.svg" alt="Title"></a>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div> <!-- end panel -->
</div> <!-- end .col-3 .col-sm-3 .col-lg-->
The CSS:
.panel img {
width: ???
}
Apologies for any posting protocol issues. Stackoverflow n00b.