Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lukem512
Created January 20, 2020 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukem512/41dae5a57bfa440db522b4760bd700a8 to your computer and use it in GitHub Desktop.
Save lukem512/41dae5a57bfa440db522b4760bd700a8 to your computer and use it in GitHub Desktop.
Colour Mixing
<html>
<head>
<title>Colour Swatch Mixing</title>
<style>
.container {
display: flex;
}
.container div {
width: 100px;
height: 100px;
opacity: 0.5;
}
.left {
background-color: blue;
border-radius: 5px 0 0 5px;
}
.right {
background-color: red;
border-radius: 0 5px 5px 0;
margin-left: -50px;
}
</style>
</head>
<body>
<div class="container">
<div class="left"></div>
<div class="right"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment