custom css trouble

Posted in: ionMag
Post count: 2

custom css trouble !! doesn’t support css positioning sticky.


<style>
.iframe{

border-bottom: 1px;
border-top: 1px;

display: block;
position: -webkit-sticky;
position: sticky;
top: -1px;
}
</style>

<div class="iframe">

<embed src="//some link" width="300" height="200" frameborder="" allowfullscreen="allowfullscreen">
</embed>
</div>

Simion C.
Post count: 254

Hi,

Please provide more details about for what exactly and where are you trying to use the code, for a better understanding.

Thanks

Post count: 2

I have tried on page and as well as i tried to used it on my page builder page ( by using raw html) but couldn’t work. Then i tried the css code on custom css from theme panel but couldn’t work. Actually i want one video to be pop up on right side if the person scroll down. Like Facebook for example. If u could help it would be really appreciated

Simion C.
Post count: 254

Hi,

The positioning could be affected by other CSS present on the page, so it may not work properly or at all. On pages you can create smart sidebars, they will be sticky
https://www.wpion.com/members/smart-sidebar/

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.