Both are valid. It's your choice.

I prefer border:0 because it's shorter; I find that easier to read. You may find none more legible. We live in a world of very capable CSS post-processors so I'd recommend you use whatever you prefer and then run it through a "compressor". There's no holy war worth fighting here but Webpack → LESS → PostCSS → PurgeCSS is a good 2020 stack.

That all said, if you're hand-writing all your production CSS, I maintain —despite the grumbling in the comments— it does not hurt to be bandwidth conscious. Using border:0 will save an infinitesimal amount of bandwidth on its own, but if you make every byte count, you will make your website faster.


The CSS2 specs are here. These are extended in CSS3 but not in any way relevant to this.

'border'
    Value:      [ <border-width> || <border-style> || <'border-top-color'> ] | inherit
    Initial:    see individual properties
    Applies to:     all elements
    Inherited:      no
    Percentages:    N/A
    Media:      visual
    Computed value:     see individual properties 

You can use any combination of width, style and colour.
Here, 0 sets the width, none the style. They have the same rendering result: nothing is shown.

Answer from Oli on Stack Overflow
🌐
W3Schools
w3schools.com › css › css_border.asp
CSS Borders
The CSS border properties allow you to specify the style, width, and color of an element's border.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Properties › border-style
border-style - CSS | MDN
2 weeks ago - The border-style shorthand CSS property sets the line style for all four sides of an element's border.
Discussions

css - Should I use `border: none` or `border: 0`? - Stack Overflow
These are extended in CSS3 but not in any way relevant to this. 'border' Value: [ || || <'border-top-color'> ] | inherit Initial: see individual properties Applies to: all elements Inherited: no Percentages: N/A Media: visual Computed value: see individual properties More on stackoverflow.com
🌐 stackoverflow.com
sass - How can I make this css border property one liner? - Stack Overflow
I have this working css but I like to make it into one line, is it possible? border-radius: 0; border-color: #ccc; border-width: 0 0 2px 0; border-style: none none solid none; More on stackoverflow.com
🌐 stackoverflow.com
Text border using css (border around text) - Stack Overflow
Is there a way to integrate a border around text like the image below? More on stackoverflow.com
🌐 stackoverflow.com
html - Styling table borders with CSS - Stack Overflow
I'm trying to do something very simple: create a table with single line borders. There are many articles saying how to do that, and almost all of them include something like table { border-colla... More on stackoverflow.com
🌐 stackoverflow.com
🌐
W3Schools
w3schools.com › cssref › pr_border-style.php
CSS border-style property
❮ Previous Complete CSS Reference Next ❯ · Set a style for the border: div {border-style: dotted;} Try it Yourself » · More "Try it Yourself" examples below. The border-style property sets the style of an element's four borders. This property ...
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Properties › border
border - CSS | MDN
2 weeks ago - The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color.
🌐
GeeksforGeeks
geeksforgeeks.org › css › css-borders
CSS Borders - GeeksforGeeks
November 1, 2025 - The border-style property must be defined (e.g., solid, dashed, etc.) for the border color to be visible. The CSS border-radius property in CSS is used to round the corners of an element's border, giving it a more visually pleasing and smoother ...
Find elsewhere
🌐
HubSpot
blog.hubspot.com › website › css-border
How to Create and Style Borders in CSS
February 23, 2023 - While the border-width and border-color property values can be omitted, the border-style property must be defined. Otherwise, it will not render. If values for the border-width and border-color properties are omitted, the border line will be rendered as black and about 3px wide by default. Here’s an example of a border that shows because it’s been coded correctly, and a border that doesn’t show because it’s been coded incorrectly. See the Pen CSS Border Not Showing by Christina Perricone (@hubspot) on CodePen.
🌐
FreeFrontend
freefrontend.com › css-borders
54 CSS Border Examples | FreeFrontend
Explore CSS border techniques beyond simple lines, including multi-layered effects with box-shadow, gradient borders, and complex shapes with border-radius.
🌐
CSS-Tricks
css-tricks.com › almanac › properties › b › border
border | CSS-Tricks
February 3, 2023 - The border property is a shorthand syntax in CSS that accepts multiple values for drawing a line around the element it is applied to.
🌐
Codecademy
codecademy.com › docs › css › borders
CSS | Borders | Codecademy
May 27, 2025 - ... In this CSS tutorial, you’ll ... the line style - must be specified for border to appear (solid, dotted, dashed, double, groove, ridge, inset, outset, none, hidden)...
🌐
web.dev
web.dev › learn › css › borders
Borders | web.dev
April 30, 2021 - A border provides a frame for your boxes. In this module find out how to change the size, style and color of borders using CSS.
🌐
YouTube
youtube.com › watch
Learn CSS borders in 4 minutes! 🖼 - YouTube
#CSS #course #tutorialCSS border tutorial example explainedh1{ border: 3px solid hsl(262, 100%, 56%); border-radius: 20px;}p{ border-bottom: 3px sol
Published   September 21, 2023
🌐
Bootstrap
getbootstrap.com › docs › 5.3 › utilities › borders
Borders · Bootstrap v5.3
$border-width: 1px; $border-widths: ( 1: 1px, 2: 2px, 3: 3px, 4: 4px, 5: 5px ); $border-style: solid; $border-color: $gray-300; $border-color-translucent: rgba($black, .175);
🌐
Reddit
reddit.com › r/css › how do i make this style of border? i am interested in the loop it takes to the left and the top of the corner and then cuts off. also want to change the color if theres anyting that needs to be pointed out about that. is this done through wordpress, if so does anyone know the plugin?
r/css on Reddit: How do i make this style of border? i am interested in the loop it takes to the left and the top of the corner and then cuts off. Also want to change the color if theres anyting that needs to be pointed out about that. Is this done through wordpress, if so does anyone know the plugin?
November 21, 2020 - A community for discussing about CSS (Cascading Style Sheets), Web Design and surrounding relevant topics. Feel free to discuss, ask questions, share projects and do other things related to CSS here. ... <div> <span><h1>Hello</h1></span> </div> div { width: 100%; box-sizing: border-box; border-bottom: solid 4px salmon; border-left: solid 4px salmon; } span { display: block; padding: 4px; border-top: solid 4px salmon; width: 16px; } h1 { margin: 0; }
🌐
Reddit
reddit.com › r/css › how to do this border style
r/css on Reddit: how to do this border style
June 17, 2024 -

hey guys,

i want to know how to do this kind of card i have tried clip-path css but not what i wanted since i cant round the clip-path

edit : added an exemple ^^