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

Centering images in a page


  #1  
Old Mar 4, 2011, 03: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, 03:36 PM
lmilesw's Avatar
lmilesw
 
10,174 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, 04: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, 06:53 PM
lmilesw's Avatar
lmilesw
 
10,174 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, 08: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, 08:58 PM
lmilesw's Avatar
lmilesw
 
10,174 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -6. The time now is 09:21 PM.


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