modal
Boa noite!
Td bem com vcs?
Peguei um codigo de modal muito util para mim, mas ele naun sai do lugar, estou tentando posiciona lo em outro lugar e naun consigo.
Ja fiz de tudo e nada resolveu alguém pode me ajudar?
Gostaria que ele ficasse, aonde eu colocar ele aceitar e rodar.
segue o codigo abaixo:
<style>
body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box;}
/ Button used to ppen the contact form - fixed at the bottom of the page /
.open-button {
background-color: #555;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
opacity: 0.8;
position: fixed;
bottom: 23px;
right: 28px;
width: 280px;
}
/ The popup form - hidden by default /
.form-popup {
display: none;
position: fixed;
bottom: 0;
right: 15px;
border: 3px solid #f1f1f1;
}
/ Add styles to the form container /
.form-container {
max-width: 300px;
padding: 10px;
background-color: white;
}
/ Full-width input fields /
.form-container input[type=text], .form-container input[type=file], .form-container input[type=textarea] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
border: none;
background: #f1f1f1;
}
/ When the inputs get focus, do something /
.form-container input[type=text]:focus, .form-container input[type=file]:focus, .form-container input[type=textarea]:focus {
background-color: #ddd;
outline: none;
}
/ Set a style for the submit/login button /
.form-container .btn {
background-color: #4CAF50;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
width: 100%;
margin-bottom:10px;
opacity: 0.8;
}
/ Add a red background color to the cancel button /
.form-container .cancel {
background-color: red;
}
/ Add some hover effects to buttons /
.form-container .btn:hover, .open-button:hover {
opacity: 1;
}
</style>
<button class="open-button" onclick="closeForm()">Open Form</button>
<div class="form-popup" id="myForm">
<form action="/action_page.php" class="form-container">
<h1> <img src="http://mercatotal.com.br/gnservice/img/logotipo2.png" width="170px" height="70px"/></h1>
<label for="nome"><b>Nome:</b></label>
<input type="text" placeholder="Seu Nome" name="nome" required/>
<label for="foto"><b>Foto:</b></label>
<input type="file" placeholder="Sua Foto" name="foto" required/>
<label for="comment"><b>Comentários:</b></label>
<textarea placeholder="Seu Comentário" name="depoimento" cols="36,7" rows="10" required></textarea>
<button type="submit" class="btn">Login</button>
<button type="button" class="btn cancel" onclick="openForm()">Close</button>
</form>
</div>
muito obrigado!Discussão (2)
Carregando comentários...