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, 12: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, 05:02 AM
juggledad's Avatar
juggledad
 
22,167 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.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Nov 14, 2012 at 11:24 AM.
  #3  
Old Nov 14, 2012, 06: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, 09: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, 09:39 AM
hackavinash
 
15 posts · Jul 2013
there is no 'align' selector!
  #6  
Old Jul 13, 2013, 07: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 02:13 PM.
  #7  
Old Jul 15, 2013, 02:47 PM
hackavinash
 
15 posts · Jul 2013
Ya it also works!
  #8  
Old Jul 15, 2013, 02: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 07:15 AM
Want to use Featured Image as Background in BODY BOX only tusk1113 Center area post/pages 4 Jun 28, 2012 07:03 PM
Is there a known bug with featured image captions and excerpts? singledudetravel Center area post/pages 16 May 27, 2011 02:45 PM
Featured image won't resize Pierre Excerpts, Read more, Pagination 5 Jan 31, 2011 09:13 AM
How do I link to a post from a featured image? ComicsBronzeAge Atahualpa 3 Wordpress theme 1 Aug 25, 2010 10:16 AM


All times are GMT -6. The time now is 07:59 AM.


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