How to set up twitter's embedded timeline width in percentage (responsive/fluid design)

后端 未结 9 1331
慢半拍i
慢半拍i 2021-02-04 17:06

I\'m looking to set up twitter\'s embedded timeline, it\'s quite easy when you\'re having a fixed design, but that\'s not my case and I\'m actually building a fluid and responsi

9条回答
  •  时光取名叫无心
    2021-02-04 17:41

    This was a helpful thread, thanks. I'm working on a site that uses an older Twitter profile Widget, which I find easier to customise. So an alternative method, uses this to display the feed (customised to suit):

    
    

    Then override the width by adding this to your stylesheet:

    .twtr-doc {
    width:100% !important;
    

    }

    You can see the various classes to modify by using IE9 in compatibility mode, then using F12 Developer Tools to see the html/css.

    Hope that helps someone!

提交回复
热议问题