Reputation: 3302
I am trying to embed twitter video and twit in such a way so that these are centered on the page and also takes full container width (my-container)
Below is the html I have
<div class="my-container">
<blockquote class="twitter-tweet" data-lang="en">
<p lang="und" dir="ltr">Fan. <a href="asdasd">asdasdasdas</a></p>— #DateChallenge (@Oloni) <a href="https://twitter.com/Oloni/status/927333497538252800?ref_src=twsrc%5Etfw">November 6, 2017</a></blockquote>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr"><a href="https://twitter.com/Oloni?ref_src=twsrc%5Etfw">@Oloni</a> I didn't know what to say after he said yes š <a href="asdasd">pic.twitter.com/aRcbEIaF06</a></p>— keshef mir (@keshefmir) <a href="https://twitter.com/keshefmir/status/923566544637984768?ref_src=twsrc%5Etfw">October 26, 2017</a></blockquote>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">Thereās a severe weather warning out for Sydney and the NSW south coast today. <a href="https://twitter.com/hashtag/9News?src=hash&ref_src=twsrc%5Etfw">#9News</a> <a href="asdasd">pic.twitter.com/J43t8Z4wJ2</a></p>— Nine News
Sydney (@9NewsSyd) <a href="https://twitter.com/9NewsSyd/status/927250318454169601?ref_src=twsrc%5Etfw">November 5, 2017</a></blockquote>
</div>
I have a sample codepen to show this https://codepen.io/hellouniverse/pen/QOEKdZ
How do I make these centred?
Upvotes: 4
Views: 3092
Reputation: 1
I want to share publications and clips with Facebook, Twitter, and some other applications for hobby only, without commercial advertisements or the like, and without violating the rights of others.
Upvotes: 0
Reputation: 51
UPDATE :
Use class="twitter-tweet tw-align-center"
instead.
Embeded tweet parameter reference
Upvotes: 5
Reputation:
.my-container{
margin:auto;
width:200px;
}
This is working. Now It's up to you how you will adjust the width.
Upvotes: 4