This is technically the same answer as @ChrisJ, with a few details on how to box-shadow your bets:
For reference, the elements * are optional :
box-shadow: <inset*> <offset-x> <offset-y> <blur-radius*> <spread-radius*> <color*>;
<spread-radius> should be negative <blur-radius> (so that none of the other blurry sides appear), and then you need to drop <offset-y> down by the same amount:
box-shadow: inset 0 20px 20px -20px
It will give you one gradient bar at the top of the element.
zzzzBov Jan 21 2018-11-21T00: 00Z
source share