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
How t reproduce floating left border style
I would make a pseudo-element with a background color and a border radius. More on reddit.com
🌐 r/css
14
4
October 30, 2024
Why does Chrome ignore border style outset?
You're probably setting border-color: black. In Chrome that seems to resolve to both colors being black, whereas in others browsers one is a lighter color. If you use another color like red or white Chrome will actually use distinct colors for the outset, but not black apparently. Try using a color that's a bit more gray. See also here , which is about ridge but same issue. More on reddit.com
🌐 r/css
5
3
October 3, 2020
[Show-off] Old-school ASCII-art style
Looks a bit like an old BIOS :D More on reddit.com
🌐 r/css
1
11
February 13, 2015
🌐
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.
🌐
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.
Find elsewhere
🌐
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 ...
🌐
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.
🌐
GCFGlobal
edu.gcfglobal.org › en › basic-css › borders-in-css › 1
Basic CSS: Borders in CSS
Style: The type of border to display. Most of the borders you'll see and use will be solid, but CSS can create other styles such as dashed and dotted borders.
🌐
CDOT Wiki
wiki.cdot.senecapolytechnic.ca › wiki › CSS_GUIDE_BORDER_STYLE
CSS GUIDE BORDER STYLE - CDOT Wiki
The border-style property sets the style of an element's border. This property must be specified for the border to be visible. Between one and four keywords are specified. If four values are given, they apply to top, right, bottom, and left border style, respectively.
🌐
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.
🌐
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)...
🌐
Mimo
mimo.org › glossary › css › borders
CSS Border: Learn How to Define Element Edges
You can use a variety of advanced CSS border styles including dashed, dotted, double, groove, ridge, inset, and outset.
🌐
Tailwind CSS
tailwindcss.com › docs › border-width
border-width - Borders - Tailwind CSS
Use border or border-<number> utilities like border-2 and border-4 to set the border width for all sides of an element:
🌐
Fandom
htmlcss.fandom.com › wiki › Border-style
Border-style | HTML & CSS Wiki | Fandom
2 weeks ago - It is a shorthand property for setting the line style for all four sides of the element's border. To set the line type for each individual side, use border-top-style, border-right-style, border-bottom-style, or border-left-style.
🌐
Programiz
programiz.com › css › borders
CSS Borders (With Examples)
For example, ... Here, the border property adds a solid blue border of 8px around the h1 element. We have the following commonly used border-related properties: ... We will look at each of them briefly. The border-style property specifies the appearance of the element's border.
🌐
ContextQA
contextqa.com › home › mastering css border style: a comprehensive guide
Mastering CSS Border Style: A Comprehensive Guide
August 29, 2025 - To apply a solid border, you can use the CSS property and value: \`border-style: solid;\`. This style is favored for its clarity and simplicity, making it a go-to option for many developers looking to achieve a clean and straightforward look.