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

From Imaginet FAQ
Jump to navigation Jump to search
Line 1: Line 1:
 
<code>
 
<code>
   <html>
+
   &lt;html>
   <head>
+
   &lt;head>
       <title>Under construction</title>
+
       &lt;title>Under construction</title>
       <meta name="This website is under construction">
+
       &lt;meta name="This website is under construction">
       <meta name="viewport" content="height=device-height, initial-scale=1">
+
       &lt;meta name="viewport" content="height=device-height, initial-scale=1">
       <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
       &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8">
       <style>
+
       &lt;style>
 
           /* Container holding the image and the text */
 
           /* Container holding the image and the text */
 
           .page {
 
           .page {
Line 29: Line 29:
 
               background-color: black;
 
               background-color: black;
 
           }
 
           }
       </style>
+
       &lt;/style>
 
   &lt;/head>
 
   &lt;/head>
 
   &ltbody>
 
   &ltbody>
Line 44: Line 44:
 
   &lt;/body>
 
   &lt;/body>
 
   &lt;/html>
 
   &lt;/html>
&lt;/code>
+
</code>

Revision as of 17:52, 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>
 &ltbody>
     <div class="page"> 
     <img src="background.png" alt="Under construction page">
         <div class="centered"> 
         <p><center>
             My website
             </br>
             Coming soon
         </center></p>
         </div> 
     </div> 
 </body>
 </html>