Moving image to center just isn't happening...
I'm working with a Bootstrap template that has worked well in almost everything up until now. In a section referred to as the "Team" section there are 4 images and I want to reduce that to ONE single image for this domain. That one image I want in the CENTER. Pretty simple. However I've spend hours trying every way possible to do it and i just can't figure it out. I learned on how Bootstrap 4 does not have center-block so I went to trying the d-block m-x-auto but that didn't work. The image moves a tad towards the center but not much at all.
I don't like messing around with a template's style-css much but I toyed with that particular section's (the "Team" section; see image) to adjust the css. I was again able to get it to move slightly but hardly at all. I almost want to give up ![]()
Here's the main css section for the image I'm playing with:
#team .member .pic img {
max-width: 100%;
}
#team .member .pic img {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 75%;
}
----------------------------------------------------------
#team .member .pic img {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
overflow:hidden;
}
--------------------------------------------------------------------
#team .member .pic img {
vertical-align: middle;
horizontal-align: middle;
max-width: 75%;
]
________________________________________-
#team .member .pic img {
margin: auto;
width: 80%;
padding: 10px;
}
_____________________________________________
So I tried them all. I de-sized the image because I read that it may not work at 100% size when trying to move to center. But still none were able to centralize the image I wanted in that section for this template. Any suggestions I'm all ears.
And here is a simple, basic attempt of me making a simple text-align: center; addition to the css which - according to the "Properties" claims (circled on the right) the image should be in the center - but it's not.
