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?


  #1  
Old Mar 6, 2011, 04:59 PM
frugalmom
 
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!
  #2  
Old Mar 6, 2011, 06:00 PM
lmilesw's Avatar
lmilesw
 
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.
  #3  
Old Mar 6, 2011, 07:44 PM
frugalmom
 
7 posts · Feb 2011
Thank you! It worked beautifully!

Bookmarks

Tags
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 07:33 PM.


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