0
I wish that when someone came onto my page, they’d open a box
, but I didn’t want it to be the default browser, but rather one chosen from my CSS
.
That would be possible?
Codes:
.box {
background: white;
border-radius: 10px;
padding: 20px;
}
<div class="box"></div>
I also wanted that when I opened the box, the background would be kind of darker, around, and when I closed the normal page...
Calling in the ready of Document does not serve?
– Felipe Avelar
Open where? You want to do a Modal?
– Erlon Charles
If she’s gonna show up at all times that the page is loaded because it does not leave it with fixed view and cares only to add a "Close" button to the message? It is more practical.
– Eduardo Silva
I wanted every time the person entered the page to appear, and to have a close button. But the close button I already have, I just wanted to open every time I entered the page.
– Paulo Cavalcante
What you want is a
modal
, take a look at this answer I made in another question, it answers your question: http://answall.com/questions/65881/como-fazer-um-pop-up-para-inserir-um-email-aparecer-ao-clicar-um-bot%C3%A3o/65887#65887– Eduardo Silva
It did not solve, the modal is without style and when it tries to close, nothing happens. I have tried in bootstrap also.
– Paulo Cavalcante
Herman the bootstrap requires jquery, did you forget to add it?
– Guilherme Nascimento
I got the modal. but you have to click "Open Modal" to open. I wanted that when the person entered the page, automatically opened...
– Paulo Cavalcante