I am facing an issue with centering a styled responsive image on my website. Upon debugging, I discovered that the class "portimage" is causing the responsiveness to break.
My requirement is to ensure that the images do not exceed 700px in size and have a subtle border around them.
Below is the code snippet in question:
<div class="row mtmini">
<div class="col-lg-12">
<img class="img-responsive center-block portimage" src="assets/img/CostcoSketch1-Home.jpg">
<br>
<img class="img-responsive center-block portimage" src="assets/img/CostcoSketch2-Menu.jpg">
<br>
<img class="img-responsive center-block portimage" src="assets/img/CostcoSketch3-CC.jpg">
</div>
</div>
Below is the CSS for the "portimage" class:
.portimage {
max-width: 700px;
border:1px solid lightgray;
}
Apologies if this seems like a basic question, I am new to web development and struggling to find a solution. I appreciate any help in advance!