2
I would like to know how to add "effects" in show and Hide, I tried to add in my code but did not succeed. Because I tried to show only a common div with class in css that gives the appearance that the image below has, but it gets behind other elements, it does not stay in the whole screen as it has to be.
When I talk about effect I mean a transparent background that takes the whole screen and appears only this white div in the middle with content, you click on a question on the site and open that div with the answer
<div class="teste" style="width: 100%;height: 500px;background: rgba(52, 90, 76, 0.8);">
<div style="margin: auto;width: 50%;height: 300px;background: #fff;">
conteudo da div blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla
</div>
</div>
What effects? Enter your code too, otherwise it gets a little difficult to help you
– Artur Trapp
You can show the HTML and CSS you are using?
– Sergio
I just did a test of what I thought would be the code, I’m going to post here, I just tried to put what I want to show inside an already modified div, but I can’t do it exactly as I’d like
– Gustavo Souza
I would like a transparent background that takes the whole screen and appears only this white div in the middle with the content, you click a question on the site and open this div with the answer.
– Gustavo Souza
Is this what you’re looking for ? https://answall.com/a/54072/129
– Sergio
That’s right, just change the background color now and the location of the X, thank you very much. If you can comment as an answer so I can vote as correct!
– Gustavo Souza
I updated the question with a photo that is more visible the style I look for, but this is just css I change here myself.
– Gustavo Souza