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)
-   -   Centering featured image? (http://forum.bytesforall.com/showthread.php?t=18900)

robertee Nov 14, 2012 12:49 AM

Centering featured image?
 
Hi,

I was wondering if anyone could lend some help with centering the featured image, since I changed to a smaller image size. I've managed to set up the theme to liking except for this bit. Any help would be appreciated.

juggledad Nov 14, 2012 05:02 AM

Install the FireBug extension in FireFox
Look at your site with FireBug enabled.
Examine the <img... statement and look at the CSS
test adding some CSS rules to center the image

Once you have the CSS Rule(s) you can add and appropriate CSS Selectr and the rule to 'post.css' theme option file.

robertee Nov 14, 2012 06:57 AM

Thanks.....I think I found the rule, but not entirely sure what to add to it (align:center)?

HTML Code:

img {
max-width: 100%;
height: auto;
display: block;
width: auto;
}

Here's my site it helps: http://www.nicaretail.com/

hackavinash Jul 13, 2013 09:38 AM

U just have to insert few lines in:
a img {
left-align:auto;
right-align:auto;


}
:)
it works for me , hope for U also;)

hackavinash Jul 13, 2013 09:39 AM

there is no 'align' selector!

jerryc Jul 13, 2013 07:07 PM

Try text-align:center; for the surrounding div and display:inline; for the image.

hackavinash Jul 15, 2013 02:47 PM

Ya it :)also works!

jerryc Jul 15, 2013 02:58 PM

Your solution is more proper. Mine is more backward compatible.


All times are GMT -6. The time now is 03:18 PM.

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