Site logo

Archived topic

Rightside Bar Images in Center

5 replies · Started by Dev on January 28, 2021

Viewing posts 1–6 of 6

Hello,

I used the below CSS to make the sidebar images in the center. But that's NOT working.

@media (min-width: 769px) {
.post-image-aligned-left .post-image img {
max-width: 405px;
}
}

https://prnt.sc/xsliot

Hi there,

use this CSS to force the image to fill the available space:

.sidebar .widget_media_image img {
  width: 100%;
}

OR you can use this CSS to center the image:

.sidebar .widget_media_image  {
  text-align: center;
}

Thanks.

You're welcome

Hello,

I was using the below CSS to keep the things in the center. But I don't know why it has stopped working. I tried other CSS mention on this page, but none of them are working.

.sidebar .widget_media_image {
text-align: center;
}

This archived topic is closed to new replies.