After my earlier post on “Centering embedded tweets in WordPress” I’d gotten a reply from Ipstenu and Otto on Twitter.
@jan_dembowski You can override it with CSS and !important. I did on a bbPress.
— ipstenu (Mika E.) (@Ipstenu) July 4, 2012
Customizing how tweets are displayed is not a new problem.
This got me taking a second look at the CSS of an embedded tweet. With Firebug you can inspect just about any items properties and I found the rule quickly.
I’m still picking up CSS knowledge all the time and I always forget about !important.
That tag lets you override rules even when it the normal CSS should get precedence. Which is why when I tried this in CSS previously it didn’t work for me, the rule I added was missing that tag. Continue reading