Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Post picture placement (http://forum.bytesforall.com/showthread.php?t=20381)

Kalkihe May 22, 2013 11:26 AM

Post picture placement
 
Hey,

I'm using Montezuma theme and I switched CSS grid to 100%. Now, when I select a picture for a post, it is shown on my main page. But it is shown on the left and I want it in the center of the picture box. So, in .post-thumb img in posts.css, I added margin-left: auto; margin-right: auto; . But this doesn't change anything.

What do I have to change that it works?

jerryc May 22, 2013 12:56 PM

Here's what I do for pics, and it might help you.

MZ defaults img to max-width:100% (height:auto), so the pics always shrink to fit the div when the window size changes, which is great. I like that much better than width:100%, where you'd get pixelating with small pics.

Like you, I prefer the smaller pics centered within the div. To do that, I set my img to display:inline and the container div to text-align:center.

I hope this helps.


All times are GMT -6. The time now is 09:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.