Open In App

How to specify the double border using CSS ?

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

The task is to specify the double border using CSS. In this article, we are going to use the border-style property to style the border. we have two common methods border-style property style and outline property in CSS.

Property used:

Syntax:

border-style: value;

Approach:

  • Create the HTML page with some elements.
  • Now, using the border-style property style the border with value double.

Example: In this example, we are using the above-explained approach.

Output:

Approach 2: Outline-property: The CSS outline property is used to set an outline around an element.

Syntax:

outline-style: value;

Example: here we are using the above method.

Output:

 

Explore