I'm facing a challenge and need some assistance. I want to create a web page with a unique design element: a tilted rainbow made of gradient colors at the top. What's required is that the rainbow should have an angle (not be perfectly horizontal) and the width on the left side needs to be smaller than the width on the right side.
However, I am unsure about how to adjust the width accordingly. Can anyone provide guidance on this?
#grad1 {
height: 200px;
background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
}
<div id="grad1"></div>