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