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