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

why is this css gradient acting weird?

newbie here. im trying to put the gradient in the whole element. it actually works and all that but the gradient just looks weird when I try to put in these shades…here’s the screenshot for what I’m talking about. i tried to search for the solutions but I cant seem to find any. are gradients supposed to act like this? like I mean with all those repeated rectangles and all..? and the rectangles there appear even harder (in color and all) when i try to rotate the gradient. yikes.

>Solution :

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

So basically you are not adjusting the size and the background is repeating.Try using this Code below

  background-image: linear-gradient(120deg,white,black);
  background-repeat: no-repeat;
  background-size: 768px 1024px;
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