VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-box-dashed-border/

โ‡ฑ Primer CSS Box Dashed Border - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Box Dashed Border

Last Updated : 23 Jul, 2025

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโ€™s design system.

In this article, we will discuss Primer CSS Dashed Border. Dashed Border is a series of short lines. It can be obtained by using the class border-dashed in Primer CSS.

Class:

  • border-dashed: It is used to apply a dashed border to a box.

Syntax:

<div class="border border-dashed ">
 Content
</div>

Example 1: In this example, we will write some text, and make a dashed border around it.

Output:

๐Ÿ‘ Image
 

Example 2: In this example, we will make a dashed border around a div that includes both text and image.

Output:

๐Ÿ‘ Image
 

Reference: https://primer.style/#dashed-border

Comment