Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Centering featured image?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 14, 2012, 01:49 AM
robertee
 
2 posts · Nov 2012
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.
  #2  
Old Nov 14, 2012, 06:02 AM
juggledad's Avatar
juggledad
 
22,374 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
  #3  
Old Nov 14, 2012, 07:57 AM
robertee
 
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/
  #4  
Old Jul 13, 2013, 10:38 AM
hackavinash
 
15 posts · Jul 2013
U just have to insert few lines in:
a img {
left-align:auto;
right-align:auto;


}

it works for me , hope for U also
  #5  
Old Jul 13, 2013, 10:39 AM
hackavinash
 
15 posts · Jul 2013
there is no 'align' selector!
  #6  
Old Jul 13, 2013, 08:07 PM
jerryc
 
367 posts · Oct 2012
Florida
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.
  #7  
Old Jul 15, 2013, 03:47 PM
hackavinash
 
15 posts · Jul 2013
Ya it also works!
  #8  
Old Jul 15, 2013, 03:58 PM
jerryc
 
367 posts · Oct 2012
Florida
Your solution is more proper. Mine is more backward compatible.

Bookmarks

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 09:56 PM.


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