How to realize Snake CSS Border
Editor to share with you how to achieve the snake CSS frame, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Snake CSS frame
What if we need a two-color super visual border?
We can put on snake clothes and color it as much as we want.
# box {font-family: Arial; font-size: 18px; line-height: 30px; font-weight: bold; color: white; padding: 15px; border: 10px dashed # FF5722; background: linear-gradient (to top, green, 10px, transparent 10px), linear-gradient (to right, green, 10px, transparent 10px), linear-gradient (to bottom, green, 10px, transparent 10px), linear-gradient (to left, green, 10px, transparent 10px) Background-origin: border-box;}
The effect is as follows:
The above is all the contents of the article "how to achieve the Snake CSS frame". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!