Is there a way for me to use an item, specifically an img, within the same div class but with different definitions?
For example:
section .row img {
margin: 0 0 30px;
width: 100%;
border: 4px solid #18a00e;
}
section .row img {
margin: 0 0 30px;
border: 4px solid #18a00e;
max-height: 300px;
}
I'm having trouble ensuring that both of these definitions are applied without one overwriting the other. Any suggestions? Thank you.
Additional information (for clarification):
//HTML code scenario 1 requiring width: 100%//
<section class="container">
<div class="row">
<figure class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<img src="img/m3.jpg"/>
</figure>
</div>
</section>
//HTML code scenario 2 needing max-height: 300px//
<section class="jumbotron">
<div class="unlockedl">
<div class="row">
<img src="img/pm1.jpg"/>
</div>
</div>
</section>