Difference between revisions of "Making an "Under Construction" page"
Jump to navigation
Jump to search
(→HTML) |
|||
| Line 27: | Line 27: | ||
top: 50%; | top: 50%; | ||
left: 50%; | left: 50%; | ||
| − | transform: translate(- | + | transform: translate(-45%, -65%); |
font-size: 2em; | font-size: 2em; | ||
} | } | ||
Revision as of 18:35, 16 February 2023
Contents
Making the page
HTML
<html>
<head>
<title>Under construction</title>
<meta name="description" content="This website is under construction">
<meta name="keywords' content="my website, my business, my products">
<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(-45%, -65%);
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">
<p><center>
My website
</br>
Coming soon
</center></p>
</div>
</div>
</body>
</html>