Monday, January 5, 2015

How to center align embedded twitter tweet

Twitter offer an embedded Tweet that brings the best content created on Twitter into your article or website. But the normal embed code are not aligned. It wouldn't it be nice if this tweet was centered on the webpage. Here, how to align the embedded tweet.
<blockquote class="twitter-tweet tw-align-center" lang="en">Flood victims in seven states totalling 119,624 as at 7pm compared to 118,896 victims at 3pm today — BERNAMA (@bernamadotcom) <a href=""> December 26, 2014</a></blockquote><script async="" charset="utf-8" src="//"></script>
Just add tw-align-center parameter inside the blockquote class. The final code will be just like example code above. Nice and beautiful.

No comments:

Post a Comment