Im having trouble getting the image on this page:
http://www.cultcitychi.com/event/interpol-the-riv/
to respond to the selector below (Im trying to center it):
.tribe-events-event-image.center{ display: block; margin-left: auto; margin-right: auto; }
Have I incorrectly inspected the HTML?
.single-tribe_events .tribe-events-event-image {
margin-bottom: 1.25em;
text-align: left;
}
remove text-align:left
from this code.
update your css class (.single-tribe_events .tribe-events-event-image -- text-align:left
with text-align:center
) with the below
CSS
.single-tribe_events .tribe-events-event-image{
text-align:center;
}
中心可以使用:
margin:0 auto;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.