Widget Alignment
-
Hi,
Please can you help me I’m trying to get the Ad in my sidebar which is a widget to align in the centre rather than the left.
Thanks
-
Yes i tried those two bits of code didnt change anything
I can’t find the CSS being applied to your webpage.
Here’s a guide of using the Custom CSS section of Jetpack http://jetpack.me/support/custom-css/I added the following to the custom css
ins {margin: 0 auto; display: block; align: centre;}Still didn’t change the element.
I still don’t see that CSS applied to the webpage. I think there’s something wrong with the method you’re using to apply the CSS.
In an earlier post, I mentioned using
!importanton the end of your styles.Align is not a CSS property.
Should be there now.
Yes, the CSS is being applied to the page.
Use!importanton the end of your styles, E.g;ins { margin: 0 auto !important; display: block !important; }Done
Yay It has worked, what do the !important bits do then?
They take precedence over other styles, that may be being applied through more specific selectors or inline. In your case, you had styles being applied inline. The
!importantbit should only be used if absolutely necessary.Thanks for are your help much appreciated 🙂
The topic ‘Widget Alignment’ is closed to new replies.
