Centre search widget in footer widget area?
-
Is there any code for centering my footer widgets in CSS? That would be AWESOME if anyone knows?
http://pavementportraits.comThe blog I need help with is: (visible only to logged in users)
-
If it is the search box you are asking about then this code will work:
#footer-widgets {
margin-left: auto;
margin-right: auto;
text-align: center;
}If it is something else you are asking about then you may need to expand your question for the WP staff to tackle it.
G/L
-
-
-
-
OK try this then:
.widget_search {
margin-left: auto;
margin-right: auto;
text-align: center;
}Please note there is a dot before the word widget_search because it is a class in the code.
-
-
justpi posted that because the codes suggested by jtanna01 didn’t work for you.
@mylesformby if you are not using Firebug yet, start using that to make your css editing easier.
-
Was there code suggestion for me in the link you posted I couldn’t find anything that seemed relevant?
I’m trying to use Firebug but I’m not sure how it identifies the relevant sections? I’ve tried clicking on the links with Firebug open but that just opens pages etc and doesn’t seem to identify which items I need. -
As the symbol @ is supposed to show, my previous reply wasn’t addressed to you, it was addressed to jtanna01 – an inexperienced member who should stop the bad habit of posting wrong suggestions without having tested them. (I might have made things clearer if I had posted right after jtanna01’s original reply, but I didn’t see that reply before you did.)
-
K. Getting my head around Firebug, it’s helping greatly thank you. Still can’t work out how to centre that damn search bar though, doh!
-
I checked http://pavementportraits.com/ but it looks like you removed the search box. Please add it back and post a reply here if you would like help centering it.
-
- The topic ‘Centre search widget in footer widget area?’ is closed to new replies.