Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Center Text in Text Widget container (http://forum.bytesforall.com/showthread.php?t=4403)

kippiper Nov 12, 2009 05:02 PM

[SOLVED] Center Text in Text Widget container
Hi guys!

I searched for this in the forum, but didn't see this question. So.....

I want to center the text in JUST ONE text widget container. The site I am working on is:


The text I want to center is the hotel address and phone at the bottom of the left sidebar.

I have tried standard <center> HTML coding to no avail. Any suggestions?

I am using Atahualpa v. 3.4.4 and WordPress 2.8.5.



juggledad Nov 12, 2009 08:59 PM

take a look at the generated source. Each text widget will have a unique class (or ID+ can't remember wich) associated with it. You can use that to help code your CSS Selector

KilRoY66 Nov 13, 2009 04:51 AM

As Juggledad says look in HTML code of your page in the sidebar when you have this widget for something like

<div class="widget widget_text" id="text-16"><div class="textwidget"><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.it" rel="license"><img src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/88x31.png" style="border-width: 0pt;" alt="Creative Commons License"/></a></div>

in this example the ID is "text-16". Go to atahualpa option - CSS insert and add:

#text-16 { text-align: center;  }
Hope this help

All times are GMT -6. The time now is 01:08 PM.

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