how to align text differently in 3 text widgets in 2011 footer?
-
Hi, I’ve read all the forum links I can find about alignment of text in a widget, but still haven’t got to grips with it yet…
I have a Child theme of 2011 with x3 text widgets in the footer area with just text + links in them.
What I want is for the left text to remain ‘left-aligned’; the center one to have ‘center-aligned’ text; and the right one to have ‘right-aligned’ text.If I inspect the element with Firebug in a browser it calls it div.textwidget; with inspect in dreamweaver it calls it inline style (which I think relates to the widget itself??) and when I inspect the text area of the widgets with Firebug in the Widget Admin area of WordPress it identifies them as:
textarea#widget-text-4-text.widefat in Footer area 1
textarea#widget-text-2-text.widefat in Footer area 2
textarea#widget-text-3-text.widefat in Footer area 3
There is also a supplementary css style for the 3 widget arein the 2011 style.css like this:/* Three Footer Widget Areas */ #supplementary.three .widget-area { float: left; margin-right: 3.7%; width: 30.85%; } #supplementary.three .widget-area + .widget-area + .widget-area { margin-right: 0; }
which I THINK is related to it too…
So I’ve tried all sorts of combinations of the above in my child style.css and currently have this:
/* to change text alignment in footer widgets: centre widget text to center + right widget text to right */ #supplementary.three .textarea#widget-text-2-text.widefat { text-align: right !important; } #supplementary.three .textarea#widget-text-3-text.widefat { text-align: center !important; }
…but all with NO EFFECT!!!
Can anyone suggest anything to resolve this issue??
Many thanks.
- The topic ‘how to align text differently in 3 text widgets in 2011 footer?’ is closed to new replies.