D
D
DarthJS2017-09-19 10:26:10
css
DarthJS, 2017-09-19 10:26:10

How to make inner component position:absolute to root app in React?

with React for now. Faced such piece - it is impossible to make Component absolute to all application. As far as I understand, position:absolute is set relative to ONLY the parent of the component.
This is not convenient, although it may come in handy somewhere. How to solve the issue?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danakt Frost, 2017-09-19
@DarthJS

So what does React have to do with it if the problem is with CSS?
No, "position: absolute" is relative to the parent only if the parent's position property is fixed , absolute , or relative , i.e. not static .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question