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
NikitaOP3y ago
Update When I set position:absolute it works correct
Nikita
NikitaOP3y ago
But when I scroll its not fixed
Nikita
NikitaOP3y ago
I also use this And I will satisfied when it will work on children body
Nikita
NikitaOP3y ago
Use iframe src='deploied site' or add class body to site in site
Nikita
NikitaOP3y ago
I don't know how but today it doesn't work
Nikita
NikitaOP3y ago
The same code
Nikita
NikitaOP3y ago
Nikita
NikitaOP3y ago
Mmm not the same comment (changes not saved)
nublet
nublet3y 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
NikitaOP3y ago
Correct me please
nublet
nublet3y ago
another + after the purple brackets

Did you find this page helpful?