I see solid, dotted, dashed frequently but not the others…are they going out of style?…are they being deprecated?how this site is really helpful but am in agreement with john what about the other styles hidden, dotted, dashed, solid, double, groove, ridge, inset, outset?Thanks for the help.

Also, you insight/opinion on these styles. border: 1px solid red top bottom left; Of course that doesn't work! border: || || border-width: Specifies the thickness of the border. ; If you add four values, this is the order: top, right, bottom, and left.. border-width. border-left: 1px solid #333333; Values: color; style; width; Or you can set each value individually.

Sign in to enjoy the benefits of an MDN account. Believe that would be helpful. For a border to take effect, the likes of border-style needs to be used with this property.. If you add two values, CSS assumes that the first value is for the top and bottom, and the second one for the right and left. The source for this interactive example is stored in a GitHub repository. div { border-style: dashed dotted; } In this CSS border-style example, we have provided two values. Let's say you want to do top, bottom and left, but not right. The border style, combined with border width and border color, can also be specified with the border shorthand property.. With one value, the border-style property can be used to specify a uniform style border around a box. : A numeric value measured in px, em, rem, vh and vw units. Border Left Color. If you haven’t already created an account, you will be prompted to do so after signing in. If you'd like to contribute to the data, please check out Instead of doing border-top: border-left: border-bottom: (three statements) you could do two like this, the zero cancels out the right side. Metadata Last modified: Jul 24, 2020 , by MDN contributors Kobi's answer gave me an idea.

The border-style specifies whether a border should be solid, dashed line, double line, or one of the other possible values.. With two, three, … border:2px solid red; above properties can write in another way border-size: 2px; border-type: solid; border-color: red; each border with different style also possible, in clock wise direction top, right, bottom, left border-size: 2px 3px 1px 5px; border-type: dotted dash solid double; border-color: red green blue yellow; resources » MDN border The compatibility table in this page is generated from structured data. The first value of dashed would apply to the top and bottom of the box. You can set the color, style and width of the left border around an element with the border-left property. This site is good when I have trouble making the code right.For example, you can have an orange bottom border on a box, then apply a dark box shadow on it: The border property accepts one or more of the following values in combination:.

The other border-left-related CSS properties: border, border-left, border-left-style, and border-left-color.

Constituent properties. Values.

; If you add three values, CSS assumes the first one is for top, the second for right and left, and the third for bottom wall. The border properties allow you to specify how the border of the box representing an element should look.

If you'd like to contribute to the interactive examples project, please clone This property is a shorthand for the following CSS properties:The three values of the shorthand property can be specified in any order, and one or two of them may be omitted.Get the latest and greatest from MDN delivered straight to your inbox.The newsletter is offered in English only at the moment.

Next, we'll look at a CSS border-style example where we provide three values.

The left border style, combined with top, right, and bottom border styles, can also be specified with the border-style shorthand property. Border Left. border-left-style 设置元素左边框的样式。 只有当这个值不是 none 时边框才可能出现。 在 CSS1 中,HTML 用户代理只需支持 solid 和 none。 Possible Values. The style of the left border of a box. There are three properties of a border you can change − The border-color specifies the color of a border.. The border-width specifies the width of a border. CSS Property: border-left-style. Since the default value of border-left-style is none, not specifying the border-style part results in no border. Phew, that’s a lot of values for one little ol’ property! Here’s a demo that illustrates the differences between all of those style values:border-radius is a different property, it is not included in the shorthand Would like to see the list of available border style properties here. The style of the border of a box. The second value of dotted would apply to the left and right sides of the box.