Intro: I have a sticky header and a body which has linear gradient.
Goal: I'd like to set the header's background as the same of a specific area, that is to say where it initially sits on the top.
Solution tried: Using the dev tool color picker to find the first value on the top and the second value where the header ends.
Result: this works. In this way the header looks like is integrated and part of the body's linear gradient. It maintains its background as I scroll down the page.
Issue: If the page's height changes the body's linear gradient will be recalculated indeed. So now the header's background need a recalculation as well.
As I am new to programming I would appreciate any suggestion that can help me to solve this dynamically. Guess it's gonna be Javascript helping out.
Here I found a user with the same issue.
Thanks a lot for your time guys!