Amit Kumawat
Amit Kumawat

Reputation: 144

scroll appearance disturbs the width of html page

in my HTML page, which is height: 100vh, and there is some collapse accordion in it when I try to expand those accordions, the page height get extends and scroll-bar get to appear, which slightly pushes the page width which I want to avoid.

Upvotes: 0

Views: 62

Answers (1)

Sahar Ebrahimi
Sahar Ebrahimi

Reputation: 115

you could use this ways:

  1. List item set the overflow parameters in css

    overflow-y:auto; overflow-x:hidden;

  2. use absolute parameter in display for expanding div

    .collapsed.in > div{ position:absolute; }

Upvotes: 3

Related Questions