Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save victoriachuang/2f27ba7ad46b8ae7f06112f5ea787319 to your computer and use it in GitHub Desktop.
Save victoriachuang/2f27ba7ad46b8ae7f06112f5ea787319 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
.image {
background-image: url("img/1.jpg");
height: 500px;
width: 500px;
}
.curtain {
background-color: rgba(0, 0, 0, 0.5);
height: 500px;
width: 500px;
color: white;
}
</style>
</head>
<body>
<div class="image">
<div class="curtain">
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment