Skip to main content

This is my Calculator project

 This is CSS sheet(calculator)

.cal-tt1{
    text-align: center;
}
.card{
    margin: 0 auto;
    max-width: 255px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 4px 8px 0 rgb(36, 34, 34);
    transition: 0.3s;
    font-size: 0px;
    border: 3px solid rgb(15, 14, 14);
    background-color: rgb(149, 106, 180);
    border-radius: 5px;
}
.card:hover{
    box-shadow: 0 16px 32px 0 rgb(36, 34, 34);
}
.cal-head #result{
    width: 233px;
    height: 75px;
    font-size: 32px;
    text-align: right;
    padding: 0 5px;
    letter-spacing: 1px;
    border: 7px solid black;
}
.butt{
    width: 63px;
    height: 65px;
    font-size: 15px;
    background-color: #1f2326;
    color: white;
}
.butto-st{
    background-color: rgb(132, 196, 6);
}
.butt:hover{
    opacity: .8;
}

This is HTML sheet

<h1 class="cal-tt1">Calculator</h1>
    <div class="card">
        <div class="cal-head">
            <input type="text" maxlength="12" id="result">
        </div>      
        <div class="cal-body">
            <div>
                <input type="button" value="C" class="butt" style="background-color: rgb(8, 177, 8);">
                <input type="button" value="+/-" class="butt butto-st">
                <input type="button" value="%" class="butt butto-st">
                <input type="button" value="/" class="butt butto-st">
            </div>
            <div>
                <input type="button" value="7" class="butt">
                <input type="button" value="8" class="butt">
                <input type="button" value="9" class="butt">
                <input type="button" value="*" class="butt butto-st">
            </div>
            <div>
                <input type="button" value="4" class="butt">
                <input type="button" value="5" class="butt">
                <input type="button" value="6" class="butt">
                <input type="button" value="-" class="butt butto-st">
            </div>
            <div>
                <input type="button" value="1" class="butt">
                <input type="button" value="2" class="butt">
                <input type="button" value="3" class="butt">
                <input type="button" value="+" class="butt butto-st">
            </div>
            <div>
                <input type="button" value="0" class="butt">
                <input type="button" value="." class="butt">
                <input type="button" value="DEL" class="butt" style="background-color: red;">
                <input type="button" value="=" class="butt" style="background-color: rgba(241, 44, 110, 0.473);">
            </div>
        </div>
    </div>

Comments

Popular posts from this blog

feture

Use  <nav>,<figure>,<ifrem>,<samp>,<var> Tag < html lang = "en" > < head >   < meta charset = "UTF-8" >   < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >   < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >   < style >     header {       text-align : center ;     }     body {       background-color : rgb ( 196 , 152 , 72 );     }     .agp {       width : 100% ;       height : 250px ;    }     .fcss {     border : 3px solid red ;     border-radius : 5px ;     padding : 5px ;     margin : 2px ;     width : 50% ;    }     .fs {       text-align : center ;     }     .t1 , .t2 , .t3 , .t4 {       background-colo...
Use CSS variable (form and list style)  If you want icon like -list ..Go to this wed -site : https://fontawesome.com/v5.15/icons?d=gallery&p=2&q=tick And attest HTML <header> this link : <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> This is CSS sheet /* form style */ .text-are12 {     resize : none ;     border : 3px solid rgb ( 71 , 3 , 3 );     border-radius : 5px ;     margin : 10px ; } input [ type = "submit" ], input [ type = "reset" ]{     width : 90px ;     border : none ;     margin : 10px ;     border-radius : 5px ;     padding : 5px ;     background-color : olivedrab ;     color : white ;     cursor : pointer...