I am trying to create a Twitter Share button in my Website. My code is like below
<li>
<a href="{! $request->url() !}" class="twitter-share-button" data-size="large">Tweet</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</li>
I am getting output like below
I found Twitter button is placed little upside. If I remove the JS
file <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
then it is placed perfectly.
I searched a lot in Google but did not get any solution.
Do you know what is the solution ?