5
I have the image below that shows a form HTML
.
I wanted to make that effect in the form but I couldn’t.
Can someone help me?
Follow my lead.
body {
font-family: 'Roboto', sans-serif;
background-color: rgb(40, 22, 111);
}
.logon {
position: relative;
top: 50% - 150px;
width: 300px;
height: 220px;
margin: 0 auto;
border: 4px rgb(93, 138, 168) solid;
border-radius: 20px;
background-color: rgb(255, 255, 255);
}
.logon * {
display: block;
margin: 5px auto;
}
.logon input,
.logon button {
font-size: .7em;
padding: 3px;
border-top: 2px rgb(10, 10, 10) solid;
border-right: 1px rgb(10, 10, 10) solid;
border-left: 1px rgb(10, 10, 10) solid;
border-bottom: 3px rgb(255, 255, 255) solid;
}
.logon h2 {
width: 250px;
height: 30px;
text-align: center;
color: rgb(0, 0, 0);
}
.logon input {
width: 250px;
height: 30px;
background: rgba(10, 10, 10, .3);
color: rgb(0, 0, 0);
}
.logon .lembra {
width: 250px;
height: 30px;
color: rgb(0, 0, 0);
}
.logon button {
width: 260px;
height: 40px;
background-color: rgb(0, 0, 0);
color: rgb(255, 255, 255);
}
<div class="logon">
<h2>Acessar Sistema</h2>
<input type="text" name="usuario" id="usuario" placeholder="usuário" />
<input type="password" name="senha" id="senha" placeholder="senha" />
<div class="lembra"></div>
<button id="logar">LOGIN</button>
</div>
Carlos what part of the effect? That white glow on the edges, or that diagonal line in the middle of the form? Or both? What is the approximate acceptable fidelity level for the code to match image 90%?
– hugocsl
So, good morning and happy new year. It would be this black shading on the bottom of the body and the white glitter on the edges. That form body rise looks like it’s just a background but I’m having a lot of trouble. The bar doesn’t need
– Carlos Rocha
This background color of the form looks like it is not solid. It gives the impression that it has taken the blue and filled several internal pixels with black. How to get this done in CSS?
– Carlos Rocha