1
I am trying to implement embed a tweet with Javascript programmatically.
Below is my code
twttr.widgets .createTweet(id, tweet, { conversation: 'none', // or all cards: 'visible', // or hidden linkColor: '#cc0000', // default is blue theme: 'light', // or dark
}) .then(function (el) { el.querySelector('#twitter-widget-0').style.width = '100%'; });
I have taken reference from below URL
As twitter has mentioned that width parameter should be between 250 and 550 pixels.
Is there any way to set width as 100% or Full-Width of web page.
I can’t override CSS as all the css has been under iframe. Is there any way to pass desired max-width ?
Any solution ?
system
closed
#2
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.