I'm trying to insert two images that are stacked vertically (flex-column) which I can do if both images aren't within an attribute tag. However, when I do put them in a tag, the pictures offset slightly to the right as shown in this image in mobile view.
Here, the top image takes you to a link on click, but the bottom doesn't. The HTML I used has this form.
<div className={isWideScreen ? "horizontal-flex basic-container" : "vertical-flex basic-container"}><a href="https://www.website1.com/"><img className="set-pic-size" src={pic1}/></a><img className="set-pic-size" src={pic2}/></div>The associated css is here for mobile view.
.basic-container { justify-content: center;}.set-pic-size { width: 100%; height: auto; margin: 10px; align-self: center;}