0

Hey everyone.
I've put a twitter feed widget on my site, but the problem with it is that it seldom display with the right width. About 90% of the times that the page loads. It only displays at about 40-50% of it's actual width. I've tried changing the width attribute, as well as the width css property. I tried using percentages(100%) or even pixels to get it right but with no success. I even tried to create a new widget on the twitter site but there's no width property which I can edit. I don't know what else could cause this problem because sometimes it does display perfectly.
Does anyone please have some advice.
Thanks in advance.

3
Contributors
4
Replies
20
Views
4 Years
Discussion Span
Last Post by Sterotech
0

This is the code, it's just placed inside a div element. At the moment there's no width attribute, because no matter how much I try customize the width, it keeps on doing that.

<a class="twitter-timeline"  href="https://twitter.com/..."  data-widget-id="...">Tweets</a>
<script>
    !function(d,s,id) {
        var js,fjs = d.getElementsByTagName(s)[0];
        if(!d.getElementById(id)) {
            js=d.createElement(s);
            js.id=id;
            js.src="//platform.twitter.com/widgets.js";
            fjs.parentNode.insertBefore(js,fjs);
        }
    }
    (document,"script","twitter-wjs");
</script>
0

Thanks, I'll check it out. Hopefully I'll learn something from it

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.