Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you can at least add a background-color of the color the gradient ends at, so it doesn't end with just white. like this:

background: linear-gradient(to top, #30cfd0 0%, #330867 100%) #330867;

if I'm not mistaken, that should work, otherwise, just add the background-color property with the desired color.

As for making it stretch across the whole body, maybe try min-height 100% for body and html? Haven't tried it yet, but I could imagine that works.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: