Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Centering featured image?


  #1  
Old Nov 14, 2012, 12:49 AM
robertee
 
2 posts · Nov 2012
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.
  #2  
Old Nov 14, 2012, 05:02 AM
juggledad's Avatar
juggledad
 
23,765 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 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!

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 10:10 AM.


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