Code for center justifying my follow blog button
-
Can you provide the css to center the follow blog button in my 2nd sidebar?
The blog I need help with is: (visible only to logged in users)
-
Hello there!
Dropping this code in your custom CSS area should do the trick:
.widget_follow_button_widget iframe { width: 154px; margin: 0 auto; display: block; }Let me know if that doesn’t work!
Sage -
Hi Sage,
The button is centered but part on the button is chopped off, which means the text on the button is also chopped off.
-
Hi there,
Sorry about that! The size of the button changes whether someone has followed the site or not and we’ve had to specify the width so that it will properly center.
If you modify the code I gave you above so that width: 169px; that should do it. The button will be ever so slightly off center to someone who hasn’t followed the site but at least it won’t cut off any text. I’m a little limited with what I can do as the button is brought in as an iframe which is pretty much untouchable by CSS.
Hope that helps,
Sage -
-
- The topic ‘Code for center justifying my follow blog button’ is closed to new replies.