Here is my HTML code. How to set the image in the center of all screens?
<html>
<head>
<title>Hub</title>
<link rel="stylesheet" href="hub.css">
</head>
<body>
<div id="button1">
<img border="0" alt="Home" src="images/buttons/home.png" width="100" height="100">
</div>
</body>
This is my current CSS code.
body {
background-image: url("beach.jpg");
background-size: cover;
background-repeat: no-repeat;
}
source
share