Design a Layered Image Page Template using HTML and CSS Last Updated : 30 Jul, 2024 Comments Improve Suggest changes Like Article Like Report The article provides a complete guide for creating a layered image layout using HTML and CSS. The Layered Image Page refers to a webpage design that contains layered structured visual elements using images. Here, the design contains two boxes with background images and some empty rounded boxes with borders to make the page more beautiful. The CSS property position with value absolute and background images gives the web page a layered effect. We will be stacking multiple images on top of each other.PreviewPreviewApproachThe <body> element contains the content of the HTML document. Div having class gfg displays the text "GeeksforGeeks" at the top of the page, The element div with class .parent_box acts as the parent container for the layered boxes, using flexbox for alignment.The element div with class .text contains the information about graphic design with a hover effect that scales the text.The element div with class .box-container wrapped individual boxes representing layered images.The boxes have property positions with value absolute and use left, and top properties to arrange themselves to make the look of a layered image with the hover effect.Example: The below example illustrates the Layered Image layout template using HTML & CSS. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Layered Image Page Template</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="gfg"> GeeksforGeeks </div> <div class="parent_box"> <div class="text"> <div> Graphic Design refers to the art of creating visuals in order to share ideas and is often seen in product packaging, magazines, websites, and user interfaces.It helps us to understand complex ideas clearly, make strong brand identities, sell products, and create user-friendly websites and apps. </div> </div> <div class="box-container"> <div class="box" id="box1"></div> <div class="box" id="box2"></div> <div class="box" id="box3"></div> <div class="box" id="box4"></div> <div class="box" id="box5"></div> </div> </div> </body> </html> CSS /* style.css */ * { margin: 0; padding: 0; box-sizing: border-box; background-color: rgb(191, 240, 240); } .parent_box { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; gap: 20px; } .box-container { height: 80vh; width: 55vw; } .text { width: 30vw; height: 50vh; display: flex; justify-content: center; align-items: center; padding: 1vh; font-size: 4vh; line-height: 40px; color: green; } .text:hover { transform: scale(1.3); transition: 2s ease-in-out; } .gfg { font-size: 30px; color: green; font-weight: 700; text-align: center; padding-top: 10px; height: 7vh; } #box1 { height: 55vh; width: 40vw; background-image: url( "https://media.geeksforgeeks.org/wp-content/uploads/20231109173229/Poster-Designer-copy.webp"); background-size: contain; border: 1px solid green; border-radius: 100%; position: absolute; left: 50vw; top: 28vh; } #box1:hover { transform: scale(0.9); transition: 1.5s ease-in-out; } #box2 { height: 30vh; width: 18vw; background-image: url( "https://media.geeksforgeeks.org/wp-content/uploads/20231116160350/Graphic-Design-copy.webp"); background-size: cover; border: 10px solid rgb(157, 192, 157); border-radius: 100%; position: absolute; left: 42vw; top: 65vh; } #box2:hover { transform: scale(1.2); transition: 1.5s ease-in-out; } #box3 { height: 20vh; width: 12vw; background-color: rgb(242, 247, 245, 0.0); border-radius: 100%; position: absolute; left: 70vw; top: 17vh; border: 12px solid rgb(157, 192, 157); } #box3:hover { transform: scale(1.2); transition: 0.7s ease-in-out; } #box4 { height: 16vh; width: 8vw; background-color: rgb(215, 236, 229, 0.0); border-radius: 100%; position: absolute; left: 80vw; top: 70vh; border: 10px solid rgb(157, 192, 157); } #box4:hover { transform: scale(1.2); transition: 1s ease-in-out; } #box5 { height: 7vh; width: 5vw; background-color: rgb(205, 228, 220, 0.0); border: 5px solid rgb(69, 157, 69); border-radius: 100%; border-radius: 100%; position: absolute; left: 70vw; top: 85vh; } #box5:hover { transform: scale(1.3); transition: 1s ease-in-out; } Output: Comment More infoAdvertise with us Next Article Design a Layered Image Page Template using HTML and CSS S shivanigupta18rk Follow Improve Article Tags : Web Technologies Web Templates CSS-Questions Similar Reads Design a Overlap Block Page Template using HTML and CSS In this article, we will create an Overlap Block layout template using HTML & CSS. The Overlap Block Layout is a design concept where multiple elements or blocks on a webpage visually overlap with one another. This layout frequently uses CSS's z-index property to regulate the order in which item 3 min read 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 Grocery Store Ttemplate using HTML and CSS In the article, we will see how to Create a website for a grocery store template using HTML and CSS. It allows customers to browse products, make purchases, and enjoy the convenience of online shopping. The grocery shop app is precisely built to incorporate a navigational header, product divisions f 5 min read Design an Expanding Image Gallery Template using HTML and CSS In this article, we design an expanding image gallery template using HTML and CSS. An Expanding Image Gallery provides an interactive user experience compared to static galleries. The image expands when the user hovers over the image, enhancing user experience. This template allows for an intuitive 2 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 Like