adc

clicks

how to make pricing table with html & css source code


The is a pricing tablestaple for any online shop. It’s used for SaaS products, service companies, and eCommerce shops all around the web.

And no pricing page can be complete without a pricing table comparing options, features, and(naturally) prices. That’s where these open source pricing tables can help. These are all fully responsive, and they operate great as templates whether you’re looking to customize your own or just reuse existing code to save time.



 

HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

<!DOCTYPE html>
<html>
<head>
  <title>pricing table </title>
  <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
  <div class="pt">
    <div class="box">
      <h2 class="header" style="background: #ff9800;">simple</h2>
      <ul>
        <li class="cash"><span>$19.99</span>per month</li>
        <li>Free Account</li>
        <li>15 Email</li>
        <li>50 gb Spacee</li>
        <li>1 Domain</li>
        <li><a href="#">Add to cart</a></li>
      </ul>
    </div>
     <div class="box">
      <h2 class="header"style="background: #0008f2;">Standar</h2>
      <ul>
        <li class="cash"><span>$49.99</span>per month</li>
        <li>Free Account</li>
        <li>50 Email</li>
        <li>110 gb Spacee</li>
        <li>3 Domain</li>
        <li><a href="#">Add to cart</a></li>
      </ul>
    </div>
     <div class="box">
      <h2 class="header"style="background: #72f202;">Ultimate</h2>
      <ul>
        <li class="cash"><span>$69.99</span>per month</li>
        <li>Free Account</li>
        <li>70 Email</li>
        <li>170 gb Spacee</li>
        <li>5 Domain</li>
        <li><a href="#">Add to cart</a></li>
      </ul>
    </div>
  </div>

</body>
</html>


 CSS

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

body{
    margin: 0;
    padding: 0;
    background:#555556;
}
.pt{
    width: 960px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.box{
    background: #212527;
    color: white;
    font-family: sans-serif;
    float:left;
    width:300px;
    margin: 10px;
}
.header{
    margin: 0;
    text-align: center;
    font-size: 25px;
    text-transform: uppercase;
    padding: 10px;

}
ul{
    margin: 0;
    padding: 0;
}
ul li{
    list-style: none;
    text-align: center;
    border-bottom: 1px solid black;
    padding: 10px;
    font-size: 18px;
}
.cash span{
    display: block;
    font-size: 60px;
}
ul li a{
    text-decoration: none;
    color: white;
    font-size: 20px;
    text-transform: uppercase;
    padding: 10px;
    display: block;
    transform: 0.5 all;
}
ul li a:hover{
    color:green;
}



 


Youtube Video Tutorials

 





how to make pricing table with html & css source code how to make pricing table with html & css source code Reviewed by easycoding on August 06, 2020 Rating: 5

No comments:

Powered by Blogger.