Solution 1 :

You can set your position:absolute on behalf of position:fixed and set your width

Problem :

I have following right sidebar which overlapping page border when browse resize,
I need position to be fixed so stays fixed when scrolling page, I searched stack for hours, tried different options but no success, not sure maybe media query can help here:

<div class="block-cat" style="background: #f3f3f3; padding: 20px; position: fixed; width:20%">

enter image description here

Comments

Comment posted by AliBaba

like this

Not sure about width, it already set?

Comment posted by AliBaba

it doesn’t help

By

Leave a Reply

Your email address will not be published. Required fields are marked *