Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Centering images in a page (http://forum.bytesforall.com/showthread.php?t=13146)

glennvogelsang Mar 4, 2011 03:16 PM

Centering images in a page
 
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!

lmilesw Mar 4, 2011 03:36 PM

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.

glennvogelsang Mar 4, 2011 04:46 PM

Thanks, I need a bit more help than that. Could you give me an example of the code?

lmilesw Mar 4, 2011 06:53 PM

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>

glennvogelsang Mar 4, 2011 08:55 PM

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

lmilesw Mar 4, 2011 08:58 PM

If it's centered as you want there is nothing else to do.


All times are GMT -6. The time now is 10:59 PM.

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