I am trying to center an image slider widget on an event page. (it’s located at the bottom of the event page in the content section) I created a class for the div but the CSS I am using doesn’t seem to be working. The width element below only resizes the size of the image slider, but doesn’t move it to the center. It is currently aligned to the left on laptop view.
.centerdiv {
margin: auto;
width: 80%;
border: 4px solid #77377C;
padding-left: 0px;
}
@media (max-width: 768px){
.centerdiv {
margin: auto;
width: 100%;
border: 4px solid #77377C;
padding-left: 0px;
}}