<!DOCTYPE html> | |
<!-- | |
| Simple linear gradient with two adjacent color stops that share the same | |
| color stop position (e.g. so it will transition from one color to another | |
| instantly at that point). | |
--> | |
<html> | |
<head> | |
<style> | |
div { | |
background: linear-gradient(yellow, blue 40%, green 40%, yellow); | |
width: 200px; | |
height: 200px; | |
} | |
</style> | |
</head> | |
<body> | |
<div></div> | |
</body> | |
</html> |