- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi.
I want to make a back ground for my website and I want it to be two colors kind of like
leniear gradient but I dont want it fade in.I just want two solid colors as a background
like black and white.Please tell me how to do that on CSS if there is a way.
Thanks.
You mean like this
https://codepen.io/Paulie-D/pen/aVKYVm
background:linear-gradient(red 50%, blue 50%);
Yes!
Thanks so much for your time.
I owe you one
Thanks Paulie
but mines fading in…
Try starting the next color on the previous stop…
background: linear-gradient(black 30%, white 30%);
You first color end value and end color start value have to be the same.
I’m not sure which way you were going but…
Thanks Guys.
:)