JSFiddle - React, Tailwind, and code Playground

by Bilal Shakeel

HTML

<!DOCTYPE html>
<html>
<head>
<style>
#grad1 {
    height: 20px;
    width:400px;
    background-image: linear-gradient(to right, red , black 48%, green); /* Standard syntax (must be last) */
}
</style>
</head>
<body>
<h1>Linear Gradient - Left to Right</h1>
<p>This linear gradient starts at the left. It starts red, transitioning to yellow:</p>
<div id="grad1"></div>
<p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
</body>
</html>