Design a Cookies Message Popup Template using HTML and CSS Last Updated : 29 Dec, 2023 Comments Improve Suggest changes Like Article Like Report In this article, we will design a Cookies Message Popup template using HTML and CSS. Cookies play a pivotal role in enhancing user experiences on websites by storing information about user preferences and interactions. The "Cookies Message Popup Template" is a simple and customizable solution for websites to inform users about using cookies. Table of Content Simple cookie consentCookie Message with OptionsWe will explore the above approaches for designing a Cookies Message Popup with the help of examples. Simple Cookie ConsentThe HTML document defines a simple cookie consent popup with a clear message and an acknowledgment button.CSS styles are applied to create an aesthetically pleasing and responsive design for the popup, featuring a fixed position at the bottom, a dark background, and contrasting text and button colors.The popup is fixed at the bottom of the screen, covering the entire width. It includes padding, a subtle box shadow, and a noticeable message to grab the user's attention.The "Got it!" button is styled with a distinctive color scheme and a hover effect to enhance user experienceExample 1: We will design a Simple Cookies Message Popup using HTML and CSS in this example. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cookie Consent Popup</title> <style> body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; } #cookie-popup { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #333; color: #fff; text-align: center; padding: 15px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); } #cookie-popup p { margin: 0; } #cookie-popup button { margin-top: 10px; background-color: #16bb24; color: #fff; border: none; padding: 10px 20px; font-size: large; cursor: pointer; } #cookie-popup button:hover { background-color: #357ae8; } </style> </head> <body> <div id="cookie-popup"> <p> This website uses cookies to ensure you get the best experience on our website. </p> <button> Got it! </button> </div> </body> </html> Output: Cookie Message with OptionsIn HTML, the structure of a cookie message popup, featuring an icon, descriptive text, and buttons, are defined.CSS styles are applied to ensure an appealing and responsive design for the cookie popup. This includes setting the position, size, background color, and button styles.The popup is fixed at the bottom left of the screen using CSS, ensuring it remains visible without interfering with the main content.Three buttons are designed for user interaction: "Accept All Cookies," "Necessary Cookies Only," and "Customize Settings." Each button has distinct styling and a hover effect to enhance the visual effect.Example 2: In this example, we will design a more advanced and styled Cookies Message Popup. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cookies Message Popup</title> <link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> <style> body { margin: 0; font-family: Arial, sans-serif; } #cookies-popup { position: fixed; bottom: 20px; left: 20px; width: 450px; background: #333; color: #fff; padding: 40px; text-align: center; box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5); z-index: 1000; border-radius: 8px; } .btn-cont { display: flex; margin: 20px 20px; } #cookies-popup p { margin-top: 20px; margin-bottom: 10px; } .btn-cont button { background: #fff; color: #333; border: none; width: 50%; padding: 8px 20px; cursor: pointer; font-weight: bold; margin: 5px; border-radius: 4px; } .btn-cust { padding: 15px 30px; font-weight: bold; color: #333; border: none; cursor: pointer; font-size: 15px; font-weight: bold; border-radius: 4px; } button:hover { background-color: rgba(196, 218, 214, 0.76); } </style> </head> <body> <div id="cookies-popup"> <i class='fas fa-cookie-bite' style='font-size:80px;'> </i> <p> This website uses cookies to ensure you get the best experience on our website. </p> <div class="btn-cont"> <button>Accept All Cookies</button> <button>Necessary Cookies Only</button> </div> <button class="btn-cust"> Customize Settings </button> </div> </body> </html> Output: Comment More infoAdvertise with us S strikeackr Follow Improve Article Tags : Web Technologies Geeks Premier League Web Templates Geeks Premier League 2023 Similar Reads Design a Google Chrome Page Template using HTML and CSS Google Chrome Page Template is a replica of Google Chrome Page which can be built with the help of HTML and CSS. This project has fundamental features and design elements, a search option, along with using the FontAwsome Icons, and various CSS styling, which offer you hands-on experience in web desi 4 min read Design a Contact us Page using HTML and CSS A Contact Us page is used to allow visitors to contact the website owner or administrator for various purposes, such as asking questions, giving feedback, requesting information, or reporting issues.In this article, we will see how to design a Contact Us page using HTML and CSS. Creating an attracti 4 min read Design a Contact Page with a Map using HTML and CSS In this article, we will design a Contact Page with a Map using HTML and CSS. The Contact Page with the Map is useful and provides users with geographical context for finding your organization or the location more efficiently. Here, we will create the basic contact form for the user to fill out and 3 min read Design a Responsive Services Section Template using HTML and CSS A Services Website plays a vital role in showcasing the different services that a particular company or any other contractor has to offer. In this article, we are going to build a services page, it will illustrate the different components of the services like the title, description, and learn more b 4 min read Design a Subscription Page using HTML and CSS In this article, we will see how to design a Subscription Page using HTML and CSS. The subscription page is a popup that has an input field for email ID and a button to subscribe the newsletter. We create a card that have an input box and a submit button, enabling users to subscribe to any newslette 2 min read Design a Nested Chat Comments using HTML CSS and JavaScript In this article, we will learn how to create Nested Comments using JavaScript. We must have seen it on social media like Facebook, Instagram, Youtube, Twitter, etc. We have seen the use of the nested comment in the comment section of these social sites.Approach:Create a folder nested-comments on you 2 min read Like