ScrollSpy Component


Topic: ScrollSpy Component

cokicoki pro premium asked 5 months ago


How to make ScrollSpy component between the left side and the right-side to be equal-size? Thank you very much for your assistance.

enter image description here

Jakub Chmura staff premium answered 5 months ago

Hi @cokicoki,

I see that textbox in the ScrollSpy component have a default class scrollspy-example which sets height on 12.5rem. If you want to change the default height of the MDBScrollSpyText component you need to create a class that overwrites this class.

I suggest you use CSS Flex to achieve the equal-size of both sides.

Let me know if you have solved the problem. If there is anything else I could do for you do not hesitate to ask me. I'll be happy to help you.

Best Regards,


cokicoki pro premium answered 5 months ago

Hi Kuba,

Could you show me how to do it? Could you give a clue with a snippet to do that? Thank you.

Jakub Chmura staff premium answered 4 months ago

Hi @cokicoki

My snippet will do not work in this case because you need to specify height what you want to achieve and use your custom media queries.

Here is a good site where you can read about CSS Flex. It's super easy and quick to understand the tutorial. Click here

Best, Kuba

Please insert min. 20 characters.


Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: React
  • MDB Version: 4.22.1
  • Device: PC
  • Browser: Mozilla Firefox
  • OS: MS Windows 7
  • Provided sample code: No
  • Provided link: No