I am looking to do a simple webpage with just an image in the centre of the page. Something that will work across most web browsers. The code I have used is below.
<html><style type="text/css">
.image {
position: absolute;
left: 50%;
top: 50%;
right: 50%;
bottom: 50%;
}
</style>
<body class="image">
<img src="images/256px-Bebo.svg.png" alt="Bebo" width="75" height="75" class="image">
</body>
</html>
Is this the best method to use to do this. Thank you for any help.
<html><style type="text/css">
.image {
position: absolute;
left: 50%;
top: 50%;
right: 50%;
bottom: 50%;
}
</style>
<body class="image">
<img src="images/256px-Bebo.svg.png" alt="Bebo" width="75" height="75" class="image">
</body>
</html>
Is this the best method to use to do this. Thank you for any help.