Commit 1b9970ff authored by Thangaraj G's avatar Thangaraj G
Browse files

grid css samples

parent 01286296
Loading
Loading
Loading
Loading

grid.css

0 → 100644
+71 −0
Original line number Diff line number Diff line
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}.container{
    width: 80%;
    background: black;
    padding: 20px;
}h1{
    text-align: center;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}.main{
    width:100%;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap:2rem;
}.division{
    padding: 15px;
    width:100%;
    position: relative;
}input{
    border-color: aqua;
    font-size: 20px;
    border:none;
    outline: none;
    background: transparent;
    border-bottom: 1px solid rgba(40,205,245);
    transition: 0.5s linear;

}input:focus{
    padding: 10px 10px;
    background: rgba(40,205,245);
    margin-top: 20px;
}
label{
    position: absolute;
    color:white;
    left:0;
}
textarea:focus{
padding : 10px 10px;
background : rgba(40, 205, 245);
margin-top : 20px;
    
}textarea{
    border:none;
    outline: none;
    border-bottom:1px solid rgba(40, 205, 245);
    background: transparent;
    transition: 0.5s linear;
    width:100%
    
}.btn{
    background: blue;
    padding: 0.3rem;
    color: white;
    border:none;
    border-radius: 5px;
}.btn:hover{
    cursor: pointer;
    background:rgb(255, 0, 170)

}