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

[SOLVED] How to center images placed in text widget?

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Mar 6, 2011, 04:59 PM
7 posts · Feb 2011
I've created a text widget to hold my twitter and facebook images, which are linked to those accounts. I would like to center the images next to each other in the text widget. (You can see them at http://frugalfunottawa.ca/frugalfish/ in the left-hand sidebar. I have used <div id="icon"> before the a href and img tags in the text box, and added div.icon {padding: 10px;} to the css Add HMTL/CSS inserts tab in the atahualpa options, but the images are still to the left. (I also tried #icon {padding:10px;} but that didn't work either. Any help would be appreciated!
Old Mar 6, 2011, 06:00 PM
lmilesw's Avatar
10,170 posts · Jul 2009
Central New York State USA
To center a div you give it a width and auto left and right margins. In your case it would be something like.
HTML Code:
#icons {
width: 130px;
margin-right: auto;
margin-left: auto;
Sometime you have to tweak the width a bit.
~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.
Old Mar 6, 2011, 07:44 PM
7 posts · Feb 2011
Thank you! It worked beautifully!


center images, widgets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to center a text widget in the header area timanderson Sidebars & Widgets 3 Jun 13, 2010 04:08 PM
[SOLVED] How to provide html link in side bar text widget and center colum gladiator Sidebars & Widgets 4 Dec 6, 2009 04:12 PM
[SOLVED] Center Text in Text Widget container kippiper Sidebars & Widgets 2 Nov 13, 2009 03:51 AM
Using rollover images in text widget causes blank lines between rollovers? hankphone Sidebars & Widgets 8 Jul 27, 2009 03:16 PM
help: trying to center a button in a text widget Shepherd Jim Sidebars & Widgets 2 Feb 15, 2009 06:45 PM

All times are GMT -6. The time now is 03:58 AM.

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