Thursday, March 10, 2022

Responsive Pricing Table

 Responsive Pricing Table


 <!DOCTYPE html>

<html>


<head>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="STYLESHEET" type="text/css" href="web.css">

    <title>web design</title>

</head>


<body>

<h2 style="text-align: center;">Responsive Pricing Tables</h2>

<p style="text-align: center;">Resize the brower windows to see the effect</p>

<div class="column">

    <ul class="pricing">

        <li class="header">Baise</li>

        <li class="grey">$ 9.99/ year</li>

        <li>10GB Storage</li>

        <li>10 Emails</li>

        <li>10 Domains</li>

        <li>1GB Bandwidth</li>

        <li class="grey" class="button" >Singn Up</li>

    </ul>

</div>

<div class="column">

    <ul class="pricing">

        <li class="header" style="background-color:#04aa6d;">Pro</li>

        <li class="grey">$ 24.99/ year</li>

        <li>25GB Storage</li>

        <li>25 Emails</li>

        <li>25 Domains</li>

        <li>2GB Bandwidth</li>

        <li class="grey" class="button" >Singn Up</li>

    </ul>

</div>

<div class="column">

    <ul class="pricing">

        <li class="header">Premium</li>

        <li class="grey">$ 49.99/ year</li>

        <li>50GB Storage</li>

        <li>50 Emails</li>

        <li>50 Domains</li>

        <li>5GB Bandwidth</li>

        <li class="grey" class="button" >Singn Up</li>

    </ul>

</div>

</body>


</html>


CSS Responsive Pricing Table Style

 *{

    box-sizing: border-box;

}

.column{

    float: left;

    width:33.3%;

    padding:8px;

}

.pricing{

    list-style-type: none;

    border-bottom:1px solid #eee ;

    margin:0px;

    padding:0px;

    -webkit-transition:0.3s ;

    transition:0.3s ;

}

.pricing:hover{

    box-shadow:0 8px 12px 0 rgba(0,0,0,0.2) ;

}

.header{

    background-color: #111;

    color: #fff;

    font-size:25px ;

}

 .pricing li{

border-bottom:1px solid #eee;

text-align: center;

padding:20px ;   

}

.pricing .grey{

    background-color: #eee;

    padding:20px;

}

.li .button{

    background-color: #04aa6d;

    border: none;

    color: #fff;

    text-align: center;

    padding:10px 25px;

    text-decoration: none;

    font-size:18px ;

}

@media screen and(width=:600px;) {

.column{

    width:100% ;

}

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...