Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. 2,037 3 3 gold badges 15 15 silver badges 29 29 bronze badges. This property can have from one to four values. W3Schools is optimized for learning, testing, and training. Step 2) Add CSS: To create a circle, use the border-radius property and set the value to 50%.

For Ex:Below is the HTML file that is making use of the created external style sheet.If you like GeeksforGeeks and would like to contribute, you can also write an article using Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below. The effect depends on the border-color value.If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: In this example, we have a dotted line of 3px dots and 7px spacing.


The task is to increase space between the dotted border dots. Read about initial: inherit: Inherits this …

The style of the border can be set using the tag border-style.

Tip: This property allows you to add rounded corners to elements! We can create the dashed border by using a path or a polygon element and setting the stroke-dasharray property. Rounded corners for an element with a background image:If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: Here are the rules:The numbers in the table specify the first browser version that fully supports the property.Numbers followed by -webkit- or -moz- specify the first version that worked with a prefix.Set rounded corners for an element with a background color:Set rounded corners for an element with a background image: If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
The effect depends on the border-color value.A ridge border. d)double- This will create a border containing double lines. answered Nov 17 '09 at 4:03. Solution with HTML and CSS¶ In this snippet, we’ll demonstrate how to add space between the dots.

They are described below: Method 1: Using SVG. you can just adjust the size with the background-size property, the proportion with the background-image property, and the proportion with the linear-gradient percentages. While using this site, you agree to have read and accepted our So, you can have several dotted borders using multiple backgrounds. you can just adjust the size with the background-size property, the proportion with the background-image property, and the proportion with the linear-gradient percentages. a)dotted- This will create a border with dotted lines. The border-radius property defines the radius of the element's corners.. To overcome this difficulty, adjust the size with the background-size property and the proportion with the background-image property. Squares and rectangles are easy, as they are the natural shapes of the web. The border-radius property can have from one to four values. CSS is capable of making all sorts of shapes. Add a width and height and you have the exact size rectangle you need. e)groove- This will create a border that will look like groove. This file saves with .css extension. Examples might be simplified to improve reading and basic understanding. The border-style property specifies what kind of border to display.. Therefore, we use a trick with an SVG image inside background-image property.

Border Style takes the following values. We use cookies to ensure you have the best browsing experience on our website.