Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

BackgroundImage- Invalid property value?

Recently I’ve been working with scss to be able to use linear gradient as a background-image.
The think is that I found that in W3School there is a tutorial explaining it, but when I use it in my app, nothing changes. It also shows the error message: Invalid property value.

I’ve trying to use it in different ways:

background-image: linear-gradient(180deg, rbg(49, 201, 205, 100), rbg(49, 13, 106, 100));

or

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

background: linear-gradient(180deg, rbg(49, 201, 205, 100), rbg(49, 13, 106, 100));

or

background-image: linear-gradient(rbg(49, 201, 205, 100), rbg(49, 13, 106, 100));

but every time, it appears to fail.
How can I make it works?
To give more context about my task, I’m trying to put a gradient as background in a div. Is this the correct way to do it?

Thanks in advance

>Solution :

try replacing rbg with rgb. Hope this helps!

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading