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.
Can CSS a gradient with a pale shade through the middle?
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Can CSS a gradient with a pale shade through the middle?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: Can CSS a gradient with a pale shade through the middle?
Try a vertical linear-gradient with black at 0%, gray at 50%, and black again at 100%.
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: Can CSS a gradient with a pale shade through the middle?
Perfect Thanks.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.