V
V
Vladislav Petrenko2017-10-01 22:22:30
css
Vladislav Petrenko, 2017-10-01 22:22:30

How to make a fixed column in Bootstrap?

Greetings!
There is a column in which row is nested and there are three more columns
in it. I need to make these three columns fixed, but when I set them to position: fixed , they begin to be positioned not relative to their parent, but relative to the entire browser window, why is that? and how can i avoid it?
Thanks in advance !

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2017-10-01
@Strebend

I prescribe position: fixed then they begin to be positioned not relative to their parent, but relative to the entire browser window, why is that?

Because specification.
https://webref.ru/css/position
Conclusion: do not use position: fixed
Use absolute and relative to the parent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question