Center a specific widget?
-
Mod
Quote:Just putting that in custom css wont help me much 😛That is EXACTLY where you want to put that code. Just be sure to refresh your browser cache, and your server cache, if you are using a caching plugin.
text-align: center;
margin: 0 auto;
But just putting theese two in custom css could mean anything on my site?! It doesnt tell that its going to apply for a specific widget.
Is this why i use this..
#text-14 {
}
Telling wich widget it is? then I wonder why it says #text-
It won’t work if you put the code as is. text-14 need not be the id of your widget as well. You need to find out the ID of the widget which you want to center. Use firebug to find out the widget ID. I guess Ken wrote some tutorials on that.
We use # to target IDs and . for classes.
First one will never work and the second one works only if you have a text widget with ID 14.
Mod
Everything in WordPress gets assigned a unique ID. Using a tool like Firebug will help you to identify the CSS ID you need to target in order to change it.
- You must be logged in to reply to this topic.
