Give me advice what I'm doing wrong (html/css) (solved)

I want output modal in body but this modal relative to parent body How I can do this modal relative to body tag inside?
11 Replies
Nikita
Nikita13mo ago
Update When I set position:absolute it works correct
Nikita
Nikita13mo ago
But when I scroll its not fixed
Nikita
Nikita13mo ago
I also use this And I will satisfied when it will work on children body
Nikita
Nikita13mo ago
Use iframe src='deploied site' or add class body to site in site
Nikita
Nikita13mo ago
I don't know how but today it doesn't work
Nikita
Nikita13mo ago
The same code
Nikita
Nikita13mo ago
Nikita
Nikita13mo ago
Mmm not the same comment (changes not saved)
nublet
nublet13mo ago
Why are you doing querys inside reactjs? Just add a conditional statement inside your element's className itself so <div className={"body" + (isOpen ? " style" : " hideStyle")}> </div>
Nikita
Nikita13mo ago
Correct me please
nublet
nublet13mo ago
another + after the purple brackets