30+ Easy CSS Border Examples (Free Downloads)

Enjoy these CSS Border Code Examples. The authors made them open source so you can modify them and add them to your own web project right away.

NEW 🔥 Auto-Apply to 100's of Jobs With AI 🔥
👉 Click to visit: ApplyFox.ai

1. CSS Gradient Rounded Borders

CSS Border Examples - CSS Gradient Rounded Borders
This pen shows how CSS gradients can be applied to a rounded border.
Author: George W. Park (GeorgePark)
Created on: April 9, 2018
Made with: HTML, CSS
Tags: css, layout, design, gradients, border

2. Reddit Border Inset Challenge

CSS Border Examples - Reddit Border Inset Challenge
Author: David Darnes (daviddarnes)
Created on: February 19, 2018
Made with: HTML, SCSS

3. Pure CSS Circular Border Patterns (Single-Element)

CSS Border Examples - Pure CSS Circular Border Patterns (Single-Element)
The "Hello, Gorgeous!" is something I saw in neon at the Scandic Grand Central hotel in Stockholm a little over a year ago. I can't afford staying at that sort of place, but I happened to see a photo of the sign as I was mindlessly going from link to link after the Helloween show at Fry...
Read More
Author: Ana Tudor (thebabydino)
Created on: December 27, 2019
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug
Tags: sass, clip-path

4. Interactive Button Border

CSS Border Examples - Interactive button border
Button with an interactive border gradient. More: https://www.stefanjudis.com/today-i-learned/background-clip-is-configurable-for-every-background-gradient-separately/
Author: Tobias Reich (electerious)
Created on: January 31, 2019
Made with: HTML, SCSS, Babel
Tags: button, border, cssvariables, background-clip, animation

5. Fitted Border Image The Easy Way

CSS Border Examples - Fitted Border Image the Easy Way
Author: ShopTalk Show (shoptalkshow)
Created on: December 12, 2019
Made with: HTML, SCSS

6. Map-inspired CSS Border (Single Element + CSS)

CSS Border Examples - Map-inspired CSS Border (Single Element + CSS)
Author: Stephy (blindingstars)
Created on: March 20, 2019
Made with: HTML, SCSS

7. Magic Borders

CSS Border Examples - Magic borders
Try to have a dynamic and responsive table that has borders only between cells.
Author: Saeed Alipoor (saeedalipoor)
Created on: February 2, 2019
Made with: HTML, SCSS
Tags: css, flex, table, trick, responsive

8. Rounded Side Border Radius

CSS Border Examples - rounded side border radius
Author: Joe (joeashworth)
Created on: January 17, 2019
Made with: HTML, CSS

9. Gradient CSS Border (Without Pseudo Elements)

CSS Border Examples - Gradient CSS Border (Without Pseudo Elements)
Author: Stefan Judis (stefanjudis)
Created on: January 18, 2019
Made with: HTML, SCSS

10. Blurred Border CSS

CSS Border Examples - Blurred Border CSS
Author: Ana Tudor (thebabydino)
Created on: March 15, 2019
Made with: HTML, SCSS
Tags: filter, clip-path

11. Fancy Border Box

CSS Border Examples - Fancy Border Box
I discovered this style on theory11.com
Author: Max (MyXoToD)
Created on: March 9, 2016
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: CoffeeScript
HTML Pre-processor: Haml
Tags: box, border, css

12. Hand Drawn Border Effects

CSS Border Examples - Hand Drawn Border Effects
A one line border-radius technique.
Author: Tiffany Rayside (tmrDevelops)
Created on: February 11, 2015
Made with: HTML, CSS
Tags: css, css-borders, border effects

13. 8-bit Borders Using Shadows

CSS Border Examples - 8-bit borders using shadows
8-bit borders using multiple css3 shadows and a little of sass. Check out the amazing 8-bit sahdow effect bases on this technique: http://codepen.io/albpara/pen/fmyen To be improved!
Author: Alberto Para (albpara)
Created on: May 5, 2014
Made with: HTML, SCSS
Tags: 8bit, 8-bit, border

14. Sketchy Border Test

CSS Border Examples - Sketchy border test
Using 8 border-radius values can be pretty dope. This example shows how using it on the element and its ::before pseudo element can create a sketchy look and feel.
Author: Andy Bell (andybelldesign)
Created on: October 26, 2018
Made with: HTML, SCSS

15. CSS Gradient Clip-Path Borders

CSS Border Examples - CSS Gradient Clip-Path Borders
This pen shows how the CSS clip-path property can be used to create a variety of shaped gradient borders.
Author: George W. Park (GeorgePark)
Created on: May 7, 2018
Made with: HTML, CSS
Tags: css, design, gradients, border, clip-path

16. Jagged Border - Top

CSS Border Examples - Jagged border - top
Author: HollowMan (HollowMan)
Created on: July 28, 2014
Made with: HTML, Less
Tags: jagged, zigzag, border, less, mixin

17. Card With Animated Left Border On Hover

CSS Border Examples - Card with animated left border on hover
Author: Tony Phipps (neutraltone)
Created on: January 17, 2019
Made with: HTML, CSS

18. Border-radius Weave

CSS Border Examples - Border-radius weave
Author: uniphil (uniphil)
Created on: November 6, 2013
Made with: HTML, Sass

19. CSS "Comic Style" Border

CSS Border Examples - CSS "Comic Style" Border
Author: michael picker (mp)
Created on: January 20, 2014
Made with: HTML, CSS, JS
Tags: css-border-border-radius-comic

20. Full Screen Vintage Frame With Multiple Borders

CSS Border Examples - Full Screen Vintage Frame with Multiple Borders
Author: Tudor Sfătosu (chris_tudor)
Created on: January 31, 2020
Made with: HTML, CSS
Tags: full-screen, vintage, frame, multiple, border

21. Corner Border Link

CSS Border Examples - Corner Border Link
Links with corner borders and transition
Author: Vian Esterhuizen (heyvian)
Created on: September 26, 2017
Made with: HTML, SCSS
Tags: cssonly, links, buttons, transitions

22. Bounce On Hover

CSS Border Examples - Bounce On Hover
When you hove the image, the border bounces.
Author: Marcello Africano (mnafricano)
Created on: January 24, 2013
Made with: HTML, SCSS
Tags: border, bounce, hover, css, html

23. Border-style

CSS Border Examples - border-style
Author: Mojtaba Seyedi (seyedi)
Created on: August 11, 2016
Made with: HTML, CSS
Tags: border-style, css-tricks.ir

24. CSS Border Chiptunes Music Video (O_o)

CSS Border Examples - CSS Border Chiptunes Music Video (O_o)
Just playing around with size transitions on weird border-styles. Only looked at it in Chrome.
Author: Olex (tholex)
Created on: April 3, 2013
Made with: Slim, Less
CSS Pre-processor: Less
JS Pre-processor: None
HTML Pre-processor: Slim
Tags: crazy, border-style, transitions, music-video, whatisthisidonteven

25. Border-animation-css

CSS Border Examples - border-animation-css
border-animation-css is create only in use of css.
Author: Swarup Kumar Kuila (uiswarup)
Created on: August 6, 2018
Made with: HTML, CSS

26. CSS Clip-path Border

CSS Border Examples - CSS clip-path border
It's not really possible (as far as I know) to make a border around an element with a clip path. This method uses an inside and outside element, the background of the outside one being the border.
Author: Bennett Feely (bennettfeely)
Created on: January 14, 2015
Made with: HTML, CSS

27. Pure CSS Zigzag Border

CSS Border Examples - Pure CSS Zigzag Border
Author: Charlotte Dann (pouretrebelle)
Created on: July 30, 2012
Made with: Markdown, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Markdown
Tags: shape

28. Fancy Border Button

CSS Border Examples - Fancy border button
Author: Tobias Reich (electerious)
Created on: September 29, 2017
Made with: HTML, SCSS
Tags: button, border, animation, lines

29. Text In A Border

CSS Border Examples - Text in a border
Author: Rico Sta. Cruz (rstacruz)
Created on: November 30, 2016
Made with: HTML, SCSS
NEW 🔥 Auto-Apply to 100's of Jobs With AI 🔥
👉 Click to visit: ApplyFox.ai