Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67411

CSS gradient direction for only one section

$
0
0

I have a css gradient that looks like this

enter image description here

And the code i used for this is as follows

background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(243,249,252,1) 0%, rgba(243,249,252,1) 50%, rgba(231,244,249,1) 50%, rgba(255,255,255,1) 100%);

As you can see left 50% is consist of single color and the right 50% has a gradient from left to right. I want to make that right gradient flows from bottom to top. How can i do this?


Viewing all articles
Browse latest Browse all 67411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>