Page 1 of 1
Can CSS a gradient with a pale shade through the middle?
Posted: Mon Sep 11, 2017 4:32 pm
by simonmlewis
We want to create a DIV with text in the middle, and a gradient of black and top and bottom, gradient into the middle with a pale shade of grey.
See attached for graphic example.

- Graphic example of what I want in CSS.
- ss.jpg (5.84 KiB) Viewed 13603 times
Re: Can CSS a gradient with a pale shade through the middle?
Posted: Tue Sep 12, 2017 12:26 am
by requinix
Try a vertical
linear-gradient with black at 0%, gray at 50%, and black again at 100%.
Re: Can CSS a gradient with a pale shade through the middle?
Posted: Tue Sep 12, 2017 2:52 am
by simonmlewis
Perfect Thanks.