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 » Sidebars & Widgets »

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

Old Mar 6, 2011, 05: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, 07:00 PM
lmilesw's Avatar
10,176 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, 08: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 05:08 PM
[SOLVED] How to provide html link in side bar text widget and center colum gladiator Sidebars & Widgets 4 Dec 6, 2009 05:12 PM
[SOLVED] Center Text in Text Widget container kippiper Sidebars & Widgets 2 Nov 13, 2009 04:51 AM
Using rollover images in text widget causes blank lines between rollovers? hankphone Sidebars & Widgets 8 Jul 27, 2009 04:16 PM
help: trying to center a button in a text widget Shepherd Jim Sidebars & Widgets 2 Feb 15, 2009 07:45 PM

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

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