Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Centering featured image?

Old Nov 14, 2012, 01:49 AM
2 posts · Nov 2012

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.
Old Nov 14, 2012, 06:02 AM
juggledad's Avatar
23,687 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Nov 14, 2012 at 12:24 PM.
Old Nov 14, 2012, 07:57 AM
2 posts · Nov 2012
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/
Old Jul 13, 2013, 10:38 AM
15 posts · Jul 2013
U just have to insert few lines in:
a img {


it works for me , hope for U also
Old Jul 13, 2013, 10:39 AM
15 posts · Jul 2013
there is no 'align' selector!
Old Jul 13, 2013, 08:07 PM
367 posts · Oct 2012
Try text-align:center; for the surrounding div and display:inline; for the image.

Last edited by jerryc; Jul 14, 2013 at 03:13 PM.
Old Jul 15, 2013, 03:47 PM
15 posts · Jul 2013
Ya it also works!
Old Jul 15, 2013, 03:58 PM
367 posts · Oct 2012
Your solution is more proper. Mine is more backward compatible.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Featured image shows the first image included in the post. Auteri Montezuma Theme 2 Oct 5, 2012 08:15 AM
Want to use Featured Image as Background in BODY BOX only tusk1113 Center area post/pages 4 Jun 28, 2012 08:03 PM
Is there a known bug with featured image captions and excerpts? singledudetravel Center area post/pages 16 May 27, 2011 03:45 PM
Featured image won't resize Pierre Excerpts, Read more, Pagination 5 Jan 31, 2011 10:13 AM
How do I link to a post from a featured image? ComicsBronzeAge Atahualpa 3 Wordpress theme 1 Aug 25, 2010 11:16 AM

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

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