I have a div that I'm trying to float on the right, but that's not the problem. When I set the height to 90%, the height doesn't change.
html {
background: linear-gradient(to left, #19e5e2f1, #0a60f5);
background-repeat: no-repeat;
background-attachment: fixed;
}
html,
body {
width: 100%;
height: 100%;
}
.rightbox {
position: relative;
left: -50px;
float: right;
height: 90%;
width: 45%;
background: #229492f1;
opacity: 0.5;
border-radius: 15px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Well Hello</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<div class="rightbox"></div>
</main>
<script src="script.js"></script>
</body>
</html>
When I use this code, it doesn't respect the height value.
Can anyone help me fix this?