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 » Atahualpa 3 Wordpress theme »

Centering images in a page


  #1  
Old Mar 4, 2011, 04:16 PM
glennvogelsang
 
54 posts · Jan 2010
http://batifole.ca/blog/
ata 3.6.4
wp.3.0.4

I have added 2 buttons to a page and would like to center them in the middle of the page (between the left sidebar and the larger photo on the right). Essentially move them over about 2 inches to the right.

I am new to this and can't figure it out.

Any help is appreciated.

Oh and if you could tell me how to change the color of the language box (top of right sidebar) to match the sidebar that would be amazing.

Thanks!
  #2  
Old Mar 4, 2011, 04:36 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You could wrap the code for the two button in a div and give the div a width and then set left and right margins to auto.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Mar 4, 2011, 05:46 PM
glennvogelsang
 
54 posts · Jan 2010
Thanks, I need a bit more help than that. Could you give me an example of the code?
  #4  
Old Mar 4, 2011, 07:53 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Sure... It would be something like this. Of course you could also give the div an ID instead and use CSS in CSS Inserts for the width and margin.
HTML Code:
<div style="width: 376px; margin-right: auto; margin-left: auto;"><a href="http://batifole.ca/blog/wp-content/uploads/2011/02/cookingtips1.jpg"><img class="size-full wp-image-214 alignleft" title="reservation" src="http://batifole.ca/blog/wp-content/uploads/2011/02/reservation.jpg" alt="" width="166" height="62" /><img class="size-full wp-image-212 alignleft" title="cookingtips" src="http://batifole.ca/blog/wp-content/uploads/2011/02/cookingtips1.jpg" alt="" width="166" height="62" /></a></div>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Mar 4, 2011, 09:55 PM
glennvogelsang
 
54 posts · Jan 2010
Thanks so much. I fooled around with the width changing it from 376 to 726 which seemed to center it. I did not add anything to CSS inserts (because I don't really know how!) though.

Do I still need to do that?

I made a $10 donation to you for all your help, which I really appreciate
  #6  
Old Mar 4, 2011, 09:58 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
If it's centered as you want there is nothing else to do.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Page menu with center column Alcatraz New Versions, & Updating 3 Nov 27, 2010 08:16 PM
centering page aveeshkumar Atahualpa 3 Wordpress theme 0 Feb 1, 2010 02:06 AM
Centering Page Menu bar, not having categories appear and page slugs questions cevaya Page & Category Menu Bars 3 Sep 12, 2009 02:32 PM
centering page and categories svittner Page & Category Menu Bars 1 Aug 18, 2009 12:33 PM
Centering Page Navigation cks Page & Category Menu Bars 1 Feb 6, 2009 04:23 PM


All times are GMT -6. The time now is 12:04 PM.


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