A
A
Alexander2015-11-11 16:21:40
css
Alexander, 2015-11-11 16:21:40

Fixed position of an element in a block?

SSMaker.ru/3190cab2
How to make the "Design Layout Concept" be fixed when scrolling this block?
I tried to give it position: fixed but it was fixed throughout the html and not in this block, which I need.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
0
0leg5ergeev, 2015-11-11
@0leg5ergeev

position: absolute?
but an example is better, of course, little is clear from the screen

S
Sailaubai Shyngys, 2015-11-11
@chyngys

position: absolute

P
Pavel Radkov, 2015-11-11
@paulradzkov

In general, sometime in the future this will be done via position: sticky( caniuse.com/#search=sticky) , but for now, try polyfills:
https://github.com/filamentgroup/fixed-sticky
https://github.com/wilddeer/ stickyfill

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question