Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
How to set width / max-width for an embedded tweet using Javascript factory function

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

https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/guides/embedded-tweet-javascript-factory-function

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.

Any solution ?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda