Yahoo India Web Search

Search results

  1. Definition and Usage. The border-style property sets the style of an element's four borders. This property can have from one to four values. Examples: border-style: dotted solid double dashed; top border is dotted. right border is solid. bottom border is double. left border is dashed.

    • Borders

      CSS Border Style. The border-style property specifies what...

    • Overview
    • Constituent properties
    • Syntax
    • Examples
    • Browser compatibility

    The border-style shorthand CSS property sets the line style for all four sides of an element's border.

    This property is a shorthand for the following CSS properties:

    •border-bottom-style

    •border-left-style

    •border-right-style

    The border-style property may be specified using one, two, three, or four values.

    •When one value is specified, it applies the same style to all four sides.

    •When two values are specified, the first style applies to the top and bottom, the second to the left and right.

    •When three values are specified, the first style applies to the top, the second to the left and right, the third to the bottom.

    •When four values are specified, the styles apply to the top, right, bottom, and left in that order (clockwise).

    Each value is a keyword chosen from the list below.

    All property values

    Here is an example of all the property values.

    BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

    • discrete
    • no
  2. www.w3schools.com › css › css_borderCSS Borders - W3Schools

    CSS Border Style. The border-style property specifies what kind of border to display. The following values are allowed: dotted - Defines a dotted border; dashed - Defines a dashed border; solid - Defines a solid border; double - Defines a double border; groove - Defines a 3D grooved border. The effect depends on the border-color value

  3. CSS border-style property specifies the appearance of the element’s border. In this tutorial, you will learn about CSS border-style with the help of examples.

  4. css-tricks.com › almanac › propertiesBorder - CSS-Tricks

    Aug 31, 2011 · The border property is a shorthand syntax in CSS that accepts multiple values for drawing a line around the element it is applied to. .belement{ border: 3px solid red; width: 200px; aspect-ratio: 1; } Syntax. border: <line-width> || <line-style> || <color> Values. The border property accepts one or more of the following values in combination:

  5. Aug 4, 2021 · CSS border-style property. With the border-style property, you get access to different styles you can apply to the border of a box. It takes none (the default), solid, dashed, dotted, double, groove, ridge, inset, and outset.

  6. People also ask

  7. The border-style CSS property is a shorthand property for setting the individual border style properties i.e. border-top-style, border-right-style, border-bottom-style, and border-left-style in a single declaration. The following table summarizes the usages context and the version history of this property. Syntax.