Site logo

Archived topic

How make a block which replace right sidebar to stay sticky on scroll?

23 replies · Started by Marcel on August 6, 2020

Viewing posts 16–24 of 24

Hi,

Thanks :)

May I know what is the difference between flex & float?

I tried switching from FLOATS to FLEX but I saw a CSS issue, borders were getting added automatically in the whole sidebar and some buttons.

Thanks!

Maybe adding the border attribute to the CSS with a value of none will help remove the unwanted borders. Under the 'top: 80px;' in the CSS code you mentioned earlier.

border: none!important;

I added the important value in case this value was already specified.

Cheers,
David

The difference between Flex and Float is the CSS properties that GP uses for its layouts and grids.

Flex was introduced in GP 3.0 and as part of that, we also made more CSS optimizations in the theme.... But one thing it should not do is add Borders to things.

Can you provide a link to a page where i can see the Border that only shows in the Flex structure?

Thats correct Flex is more optimized.

Thats weird, the Theme doesn't have any default border styles on anything other than table and form elements.
If you make the change to flexbox, publish the change and clear any plugin/server caches do the borders remain ?

Hi,

In the video I also showed you by clearing all cache, I don't know if you noticed it or not. Border shows even after clearing all the cache.

Thanks!

Hi Brajmohan,

After watching your video, I inspected the button and the sidebar, both of these 2 elements are built with Elementor, since GP doesn't add border to buttons or sidebars by default, it's more likely added by Elementor.

But it's still very difficult for us to make sure the cause without inspecting the site.

I would recommend creating a staging site.

Hello,

Yes, buttons & a single blog template are built with Elementor. But is it normal to get the border on Elementor built page by changing from float to flex?

Do you want login details for inception? Let me know how can I provide that?

Thanks!

This archived topic is closed to new replies.