HTML color of navigation bar : <p>I am designing a web page and I want the top navigation bar of my website to have a color like the image below.
This image is taken from the website of Virgin America airlines.
See how the color changes from left to right.
Any CSS/HTML tricks to accomplish this task.</p>

<p><a href="https://i.stack.imgur.com/xZNgl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xZNgl.png" alt="enter image description here"></a></p>

<p>PS:I did know how to frame this in words, so the poor title of the question.</p>
