Find out more CSS tricks at css-tip.com
We all know the property border-image that allows us to add any kind of images (including gradients) as bo...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks
This helped enormously, thank you!
But what if i need to make a background colour as well? for instance, gradient as well
in this case, you don't need mask or pseudo element simply do
This is SO much cleaner than all the "gradient border"-articles you find around the web — love the 4-char alpha-hex. Thank You!
Well i tried what you said, but it looks very much differently from what i want to archive and it's so sad.
PS: i decided simply to export the background with border as a background (svg), the simplest way
thanks for the tip, will try.. my designer made this, at first i tried it with a border-image-source but it doesn't work with border-radius, of course
Thus just saved me more digging, thanks muchacho
Thanks, it could work in some situations, although two issues:
if you are adding z-index:-1 to the pseudo element you need to add z-index:0 to the main element to avoid the issue OR don't use z-index at all and add pointer-events:none to the pseudo element
Thank you! That does fix it!
Thank you so much! Even if I ended up not using your solution, you helped me find out the best way to do this dev.to/noriste/production-grade-gr... 😊
Thanks for this but doesn't work in Safari, only Chrome and Firefox
Nice! thanks.
Nice article, and nice seeing you here :)
thanks :) will try to bring some tricks and some hacks to dev.to ;)
Where can we find pre-made gradients?
what kind of pre-made gradients?
I mean gradient which made by someone to use. Ready to use gradients.
After some digging around the internet, I found this
eggradients.com/
So pretty!
is there website (like (JavaScript.info) ) for CSS ❓❓❓
Maybe the MDN website: developer.mozilla.org/en-US/docs/W...
You might just love css-tricks.com 😉
Great article, so good to see you here!
thanks :)
Nice
Awesome!!
Jenius! Thanks bro, your explanation has solved my problem.
creating shadow gradient use this thing
Yes, quite easy by adding a blur filter to the pseudo element ;)
I need to make a div with glassy background and rounded borders with gradient. Is there some way I could do that without using any background-padding technique.
Thanks so much bro <3