I can’t see anything written as the background covers it all, I tried using relative and absolute positions but no success. Also, I am a complete beginner and I am learning by myself so probably there are more things that could be fixed but I really need to know how to put my background in the back.
body {
background-image: url("background.gif");
position: relative;
}
.box {
position: absolute;
width: 100%;
height: 720px;
background: linear-gradient(to top, rgba(105, 0, 54, 0.3), rgba(0, 0, 0, 0.8));
border-width: 1px;
border-style: dashed;
border-color: white;
}
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>website da emi! :3</title>
</head>
<body>
<div class="box">
<h1> hi </h1>
</div>
</body>
</html>
New contributor
lilia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
7