How to Create Pricing Table using HTML and CSS ? Last Updated : 05 Aug, 2024 Comments Improve Suggest changes Like Article Like Report Nowadays, every website contains pricing tables, such as e-commerce, e-tech, and even tourism websites also have pricing tables as they contain their plans, cost of plans, and information about plans to buy new facilities. So the pricing table is one of the most important parts of websites that sell something. In this article, we are creating a beautiful pricing table with the help of pure HTML and CSS coding.Here is the preview image of the pricing table we are going to make:Prerequisite:HTMLCSSTransition in CSSProject Structure:--index.html--style.cssApproach: To create this feature, first we will create two files index.html and style.css. Inside the index.html file we will create a container and add the cards table using the grid layout. Heading and Description is displayed first then the card is rendered. In the style.css file we will create animations such as shadow and scaling on hover of the card. The button color also changes on hover. Unique CSS is given to the most selling course which is the standard program.Example: In this example, we will use the above-explained approach. HTML <html> <head> <title> Pricing Table using HTML and CSS </title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <h2>Select Your Plan</h2> <h3> C Programming Course: Beginner to Advance </h3> <div class="price-row"> <div class="price-col"> <p>Basic</p> <hr> <h3> ₹ 500/<span>month</span></h3> <ul> <li>Live Online Classes</li> <li>Hands on Project</li> <li>Live Doubt Session</li> <li>Certificate on Completion</li> </ul> <button>Buy Now</button> </div> <div class="price-col" id="best"> <p id="prem">Standard*</p> <hr> <h3>₹ 1000/<span>month</span></h3> <ul> <li>All Basic Features</li> <li>Data Structure & Algorithms</li> <li>Memory Management in C</li> <li>Limit upto 2 users</li> </ul> <button>Buy Now</button> </div> <div class="price-col"> <p>Premium</p> <hr> <h3>₹ 1600/<span>month</span></h3> <ul> <li>All standard Features</li> <li>Recorded Lectures</li> <li>Placement Assistance</li> <li>Limit upto 4 users</li> </ul> <button>Buy Now</button> </div> </div> </div> </body> </html> CSS * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } .container { width: 100%; min-height: 100vh; background: #fffaee; } .container h2 { color: #1d2d3f; font-size: 32px; padding: 15px 0 20px 0; text-align: left; margin-left: 10%; } .container h3 { margin: 0% 0 2% 10%; font-size: 24px; color: #0C356A; } .price-row { width: 81%; margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-gap: 30px; } .price-col { transition: box-shadow .5s; transition: transform; background: #61677A; padding: 10% 10%; border-radius: 10px; color: #D8D9DA; text-align: center; } hr { padding: -10% !important; } .price-col:hover { box-shadow: 0 0 20px rgba(9, 157, 194, 0.2); transform: scale(1.04); } .price-col p { font-size: 22px; } .price-col h3 { color: whitesmoke; font-size: 44px; margin: 15px 0 20px; font-weight: 500; } .price-col h3 span { font-size: 25px; } .price-col ul { text-align: left; margin: 10px 0; color: #0C356A; list-style: none; } .price-col ul li { border-bottom: 2px solid #feffff; font-size: 20px; color: #ffffff; padding: 8px; text-align: left; } .price-col button { background-color: #EEE0C9; border: 1px solid white; border-radius: 5px; margin: 20px 0 0 0; color: #001c38; padding: 10px 25px; text-align: center; text-decoration: none; font-size: 18px; } .price-col button:hover { background: #091c23; color: white; } #best { background: #272829 !important; } p { font-size: 24px !important; margin-bottom: 10px; margin-top: -10px; } #prem { color: gold !important; text-shadow: 1px 1px gold; } Output: Comment More infoAdvertise with us Next Article How to Create Pricing Table using HTML and CSS ? A akshaybotre203 Follow Improve Article Tags : Web Technologies Web Templates Geeks-Premier-League-2022 Similar Reads JavaScript Tutorial JavaScript is a programming language used to create dynamic content for websites. It is a lightweight, cross-platform, and single-threaded programming language. It's an interpreted language that executes code line by line, providing more flexibility.JavaScript on Client Side: On the client side, Jav 11 min read Web Development Web development is the process of creating, building, and maintaining websites and web applications. It involves everything from web design to programming and database management. Web development is generally divided into three core areas: Frontend Development, Backend Development, and Full Stack De 5 min read React Interview Questions and Answers React is an efficient, flexible, and open-source JavaScript library that allows developers to create simple, fast, and scalable web applications. Jordan Walke, a software engineer who was working for Facebook, created React. Developers with a JavaScript background can easily develop web applications 15+ min read React Tutorial React is a JavaScript Library known for front-end development (or user interface). It is popular due to its component-based architecture, Single Page Applications (SPAs), and Virtual DOM for building web applications that are fast, efficient, and scalable.Applications are built using reusable compon 8 min read JavaScript Interview Questions and Answers JavaScript (JS) is the most popular lightweight, scripting, and interpreted programming language. JavaScript is well-known as a scripting language for web pages, mobile apps, web servers, and many other platforms. Both front-end and back-end developers need to have a strong command of JavaScript, as 15+ min read Domain Name System (DNS) DNS is a hierarchical and distributed naming system that translates domain names into IP addresses. When you type a domain name like www.geeksforgeeks.org into your browser, DNS ensures that the request reaches the correct server by resolving the domain to its corresponding IP address.Without DNS, w 8 min read NodeJS Interview Questions and Answers NodeJS is one of the most popular runtime environments, known for its efficiency, scalability, and ability to handle asynchronous operations. It is built on Chromeâs V8 JavaScript engine for executing JavaScript code outside of a browser. It is extensively used by top companies such as LinkedIn, Net 15+ min read HTML Interview Questions and Answers HTML (HyperText Markup Language) is the foundational language for creating web pages and web applications. Whether you're a fresher or an experienced professional, preparing for an HTML interview requires a solid understanding of both basic and advanced concepts. Below is a curated list of 50+ HTML 14 min read What is an API (Application Programming Interface) In the tech world, APIs (Application Programming Interfaces) are crucial. If you're interested in becoming a web developer or want to understand how websites work, you'll need to familiarize yourself with APIs. Let's break down the concept of an API in simple terms.What is an API?An API is a set of 10 min read Introduction of Firewall in Computer Network A firewall is a network security device either hardware or software-based which monitors all incoming and outgoing traffic and based on a defined set of security rules it accepts, rejects, or drops that specific traffic. It acts like a security guard that helps keep your digital world safe from unwa 10 min read Like