CSS CSS Tutorial CSS Advanced CSS Responsive Web Design(RWD) CSS Grid CSS Properties Sass Tutorial Sass Functions



border-inline-style

CSS (Cascading Style Sheets) is a style sheet language used for describing the presentation of a document written in HTML (Hypertext Markup Language). CSS provides a wide range of properties to style the HTML elements. One of the properties is the border-inline-style property.

The border-inline-style property is used to set the style of the inline borders of an element. The inline borders are the borders that run along the inline content of an element. The inline content is the content that flows within the text of a paragraph or a heading.

The border-inline-style property can take one of the following values:

  • none: No border is displayed.
  • hidden: A hidden border is displayed.
  • dotted: A dotted border is displayed.
  • dashed: A dashed border is displayed.
  • solid: A solid border is displayed.
  • double: A double border is displayed.
  • groove: A 3D grooved border is displayed.
  • ridge: A 3D ridged border is displayed.
  • inset: A 3D inset border is displayed.
  • outset: A 3D outset border is displayed.
  • initial: Sets the property to its default value.
  • inherit: Inherits the property from its parent element.

Here are some examples of using the border-inline-style property:

  <p style="border-inline-style: dotted;">This is a paragraph with a dotted inline border.</p>
  <p style="border-inline-style: dashed;">This is a paragraph with a dashed inline border.</p>
  <p style="border-inline-style: solid;">This is a paragraph with a solid inline border.</p>

The above code will produce the following output:

This is a paragraph with a dotted inline border.

This is a paragraph with a dashed inline border.

This is a paragraph with a solid inline border.

The border-inline-style property can also be used with the border-inline-width and border-inline-color properties to set the width and color of the inline borders. Here is an example:

  <p style="border-inline-style: dashed; border-inline-width: 2px; border-inline-color: red;">This is a paragraph with a dashed inline border that is 2 pixels wide and red in color.</p>

The above code will produce the following output:

This is a paragraph with a dashed inline border that is 2 pixels wide and red in color.

The border-inline-style property can also be used with the border-top-style, border-right-style, border-bottom-style, and border-left-style properties to set the style of the individual borders of an element. Here is an example:

  <p style="border-top-style: solid; border-right-style: dotted; border-bottom-style: dashed; border-left-style: double;">This is a paragraph with different styles for each of its borders.</p>

The above code will produce the following output:

This is a paragraph with different styles for each of its borders.

The border-inline-style property is a useful property for adding visual interest to the inline content of an element. It can be used to create a variety of border styles that can enhance the design of a web page.

References

Activity