Difference between revisions of "Making an "Under Construction" page"

From Imaginet FAQ
Jump to navigation Jump to search
Line 32: Line 32:
 
   </head>
 
   </head>
 
   <body>
 
   <body>
       <div class="page">  
+
       &lt;div class="page">  
 
       <img src="background.png" alt="Under construction page">
 
       <img src="background.png" alt="Under construction page">
           <div class="centered">  
+
           &lt;div class="centered">  
 
           <p><center>
 
           <p><center>
 
               My website
 
               My website
Line 40: Line 40:
 
               Coming soon
 
               Coming soon
 
           </center></p>
 
           </center></p>
           </div>  
+
           &lt;/div>  
       </div>  
+
       &lt;/div>  
 
   </body>
 
   </body>
 
   </html>
 
   </html>
 
</code>
 
</code>

Revision as of 17:46, 16 February 2023

 <html>
 <head>
     <title>Under construction</title>
     <meta name="This website is under construction">
     <meta name="viewport" content="height=device-height, initial-scale=1">
     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     <style>
         /* Container holding the image and the text */
         .page {
             position: relative;
             text-align: center;
             color: black;
             display: flex;
             justify-content: center;
             overflow: hidden;
             height: 100vh;
         }
         /* Centered text */
         .centered {
             position: absolute;
             top: 50%;
             left: 50%;
             transform: translate(-50%, -50%);
             font-size: 2em;
         }
         /* style of space behind the image */
         body {
             background-color: black;
         }
     </style>
 </head>
 <body>
     <div class="page"> 
     <img src="background.png" alt="Under construction page">
         <div class="centered"> 

             My website
             
Coming soon

         </div> 
     </div> 
 </body>
 </html>