Home » Snippets » Fake Border Gradient Fake Border Gradient - Snippet --- jQuery jQuery UI Bootstrap Angular Backbone D3 Ember GreenSock TweenMax Handlebars Lodash Modernizr Polymer React React DOM Snap.svg Three.js Underscore Zepto ZingChart --- Bootstrap Foundation Animate.css Preview HTML CSS JS <div id="container"> <h1>Fake border gradient!</h1> </div> html { background: #eee; } #container { background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #aaaeaf), color-stop(100%, #689ecd)); background-image: -webkit-linear-gradient(#aaaeaf, #689ecd); background-image: -moz-linear-gradient(#aaaeaf, #689ecd); background-image: -o-linear-gradient(#aaaeaf, #689ecd); background-image: -ms-linear-gradient(#aaaeaf, #689ecd); background-image: linear-gradient(#aaaeaf, #689ecd); -webkit-border-radius: 3px; -moz-border-radius: 3px; -ms-border-radius: 3px; -o-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2); box-shadow: 0 0 50px rgba(0, 0, 0, 0.2); margin: 80px auto; padding: 20px; position: relative; width: 150px; } #container * { position: relative; } h1 { font-size: 15px; text-align: center; } #container::before { background: white; -webkit-border-radius: 2px; -moz-border-radius: 2px; -ms-border-radius: 2px; -o-border-radius: 2px; border-radius: 2px; bottom: 1px; content: ''; left: 1px; position: absolute; right: 1px; top: 1px; } Tutorials Palace 10 January, 2019 No Comments 105 Views Fake Border Gradient CSS Effects CSS Effects Download Fake Border Gradient Code Fullscreen Tutor Play Walkthrough Related Snippets Box Shadow Editor Canvas Particles Emission Dripping Paint CSS3 Animation National flag of Mongolia Particles Emission Based on Mouse Moves Custom Cursor Images with CSS Particle System Leaving Trails CSS3 LT Form Particles Gravity Effect Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Name * Email * Website Notify me of new posts by email.