Pet 10

Does anyone know how to style a twitter iframe scroll bar? I managed to style other iframes by applying a style to the body tag but the twitter iframe is not styled by my CSS. Anyone know a way around this?

1 answer


Unless Twitter lets you inject a stylesheet with JS you won't be able to do that... If you know roughly how tall your content inside the iframe will be you could try something like:

<div class="iframe-container">

And then have styling like:

.iframe-container {overflow-x:hidden; overflow-y:scroll; height:400px; width:220px; --INSERT AWESOME PROPRIETARY SCROLL BAR STYLING FOR WEBKIT HERE}
iframe {overflow:hidden; height:1600px; width:220px}

Not ideal but it would let you use a custom scroll bar.

Answered over 7 years ago by Darcy Bross