I have created a website showcasing images in a gallery. Currently, the images are aligned to the top and I would like them to be centered within the DIV.
Below is the code I am using:
.carousel .item {
height: 900px;
background-color: #777;
}
.carousel-inner > .item > img {
top:5%;
display: block;
margin-left: auto;
margin-right: auto
}
You can view my website in action by visiting this link:
The last image on the page is a prime example of what I am trying to achieve. It is a small image that I want vertically centered.