This is what I'm trying to achieve:
The light blue lines are just markers. I want an angle from a fixed px from the center (off to the left). And I also want the darker blue on the left to be a gradient too.
I can make the angle I need, but I'm stuck on placing it at a fixed point from the center, and making the darker part another angled gradient:
.topbar {
height: 150px;
background: rgb(28,25,84);
background: linear-gradient(-63deg, rgba(28,25,84,1) 50%, rgba(20,18,63,1) 0);
}
<div class="topbar"></div>
Thanks!
You can have multipe background like follow:
I made the fixed distance from the center to be
200px
which is the width of one gradient that is shifted by half200px
from the center:You can check this answer for more details on how
background-position
works with percentage values: Using percentage values with background-position on a linear-gradient