๐ŸŒ
W3Schools
w3schools.com โ€บ cssref โ€บ pr_border-width.php
CSS border-width property
Set the width of the top and bottom borders to 10px, and the width of the left and right borders to 1px: ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: [email protected] ยท If ...
Discussions

Border Vs. Border-Width - HTML & CSS - SitePoint Forums | Web Development & Design Community
In the following code, if there is both border and border-width, than border-width controls the width. Border controls the width when there is no border-width. Is this normal, maybe it is set so if the border-width doesnโ€™t work in a browser there is a backup style? More on sitepoint.com
๐ŸŒ sitepoint.com
1
September 2, 2023
How to give border to any element using css without adding border-width to the whole width of element? - Stack Overflow
231 When 1 px border is added to div, Div size increases, Don't want to do that ... 0 Highlighting elements by adding a border and changing ancestor's display style changes the page layout ยท 0 How can I make a border with CSS around some elements without specifing an absolute width? More on stackoverflow.com
๐ŸŒ stackoverflow.com
html - How do I set border width with CSS? - Stack Overflow
Why does this work? I get the same result in Chrome and in IE9. More on stackoverflow.com
๐ŸŒ stackoverflow.com
html - Border Height on CSS - Stack Overflow
I have a table TD and on the right of it I want to add a 1 pixel border, so I've done this: table td { border-right:1px solid #000; } It works fine but the problem is that the border's height ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ CSS โ€บ Reference โ€บ Properties โ€บ border-width
border-width - CSS | MDN
2 weeks ago - /* Keyword values */ border-width: thin; border-width: medium; border-width: thick; /* <length> values */ border-width: 4px; border-width: 1.2rem; /* top and bottom | left and right */ border-width: 2px 1.5em; /* top | left and right | bottom */ border-width: 1px 2em 1.5cm; /* top | right | ...
๐ŸŒ
SitePoint
sitepoint.com โ€บ html & css
Border Vs. Border-Width - HTML & CSS - SitePoint Forums | Web Development & Design Community
September 2, 2023 - border-width: 5px; It will assign border-width shorthand CSS property and sets the widths of all four sides of an elementโ€™s border .
๐ŸŒ
W3Schools
w3schools.com โ€บ css โ€บ css_border_width.asp
CSS Border Width
The border-width property specifies the width of the four borders. The width can be set as a specific size (in px, pt, cm, em, etc) or by using one of the three pre-defined values: thin, medium, or thick:
๐ŸŒ
W3Schools
w3schools.com โ€บ cssref โ€บ pr_border.php
CSS border property
border: border-width border-style border-color|initial|inherit; ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: [email protected] ยท If you want to report an error, or if you want to make a suggestion, send us an e-mail: [email protected] ยท HTML Tutorial CSS Tutorial JavaScript Tutorial How To Tutorial SQL Tutorial Python Tutorial W3.CSS Tutorial Bootstrap Tutorial PHP Tutorial Java Tutorial C++ Tutorial jQuery Tutorial
Find elsewhere
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ border-width
border-width - Borders - Tailwind CSS
<div class="border-t-4 border-indigo-500 ..."></div><div class="border-r-4 border-indigo-500 ..."></div><div class="border-b-4 border-indigo-500 ..."></div><div class="border-l-4 border-indigo-500 ..."></div>
๐ŸŒ
Bootstrap
getbootstrap.com โ€บ docs โ€บ 5.3 โ€บ utilities โ€บ borders
Borders ยท Bootstrap v5.3
"border": ( property: border, values: ( null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color), 0: 0, ) ), "border-top": ( property: border-top, values: ( null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color), 0: 0, ) ), "border-end": ( property: border-right, class: border-end, values: ( null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color), 0: 0, ) ), "border-bottom": ( property: border-bottom, values: ( null: var(--#{$prefix}border-width) var(--#{$prefix}border-style)
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ css โ€บ css-border-width-property
CSS Border Width Property %%page%% %%sep%% %%sitename%% - GeeksforGeeks
July 11, 2025 - <!DOCTYPE html> <html> <head> <title> ... </head> <body> <h1 style="color: green"> GeeksforGeeks </h1> <p>border-width: 5px 10px 15px 20px</p> <!-- This div has different border widths for each side --> <div style="border-width: ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ css โ€บ how-to-set-border-width-in-css
How to Set Border Width in CSS? - GeeksforGeeks
July 23, 2025 - <!DOCTYPE html> <html> <head> <title>Border Width</title> <style> /* Set border width for all sides */ .GFG { /* 2 pixels width for all sides */ border: 2px solid black; padding: 10px; } </style> </head> <body> <div class="GFG"> Welcome to ...
๐ŸŒ
Mimo
mimo.org โ€บ glossary โ€บ css โ€บ border-width
CSS border-width: Customize element borders effortlessly
Instead of using border-top or border-bottom, logical properties like border-block help maintain consistency in different writing directions: ... This applies the same width to the block-start and block-end sides, adapting to text direction settings. The CSS border-width property offers flexibility when designing web elements.
๐ŸŒ
HTML Dog
htmldog.com โ€บ references โ€บ css โ€บ properties โ€บ border-width
CSS Property: border-width | HTML Dog
Border width can be set on sides independently with border-top-width, border-right-width, border-bottom-width, and border-left-width.
๐ŸŒ
Programiz
programiz.com โ€บ css โ€บ border-width
CSS border-width Property (With Examples)
CSS border-width property specifies the width or thickness of the element's border.
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ border-style
border-style - Borders - Tailwind CSS
Prefix a border-style utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
๐ŸŒ
Littlewebhut
littlewebhut.com โ€บ css โ€บ border_width
CSS border-width Property
CSS border-width Property - Usage, Examples, and Testing for CSS 2.1.
๐ŸŒ
TechOnTheNet
techonthenet.com โ€บ css โ€บ properties โ€บ border_width.php
CSS: border-width property
This CSS tutorial explains how to use the CSS property called border-width with syntax and examples. The CSS border-width property defines the border width of a box.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ CSS โ€บ border-inline-width
border-inline-width - CSS | MDN
August 5, 2025 - /* <'border-width'> values */ border-inline-width: 5px 10px; border-inline-width: 5px; border-inline-width: thick; /* Global values */ border-inline-width: inherit; border-inline-width: initial; border-inline-width: revert; border-inline-width: revert-layer; border-inline-width: unset;