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



border-inline-end-style

The border-inline-end-style property is used to set the style of the inline-end border of an element. It is a part of the CSS Box Model and is used to define the style of the border on the inline-end side of an element. The inline-end side is the side of an element that is opposite to the inline-start side, which is determined by the direction of the text.

The border-inline-end-style property can be used with any HTML element, but it is most commonly used with block-level elements such as div, p, and headings.

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

  • none: No border is displayed on the inline-end side of the element.
  • hidden: Same as none, but the space where the border would be is still reserved.
  • dotted: A dotted border is displayed on the inline-end side of the element.
  • dashed: A dashed border is displayed on the inline-end side of the element.
  • solid: A solid border is displayed on the inline-end side of the element.
  • double: A double border is displayed on the inline-end side of the element.
  • groove: A 3D grooved border is displayed on the inline-end side of the element.
  • ridge: A 3D ridged border is displayed on the inline-end side of the element.
  • inset: A 3D inset border is displayed on the inline-end side of the element.
  • outset: A 3D outset border is displayed on the inline-end side of the element.
  • inherit: The value of the border-inline-end-style property is inherited from the parent element.

Here are some examples of how to use the border-inline-end-style property:

Example 1: Setting the border-inline-end-style to solid

In this example, we will set the border-inline-end-style property to solid:

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

The output of the above code will be:

This is a paragraph with a solid inline-end border.

Example 2: Setting the border-inline-end-style to dotted

In this example, we will set the border-inline-end-style property to dotted:

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

The output of the above code will be:

This is a paragraph with a dotted inline-end border.

Example 3: Setting the border-inline-end-style to double

In this example, we will set the border-inline-end-style property to double:

  
    <p style="border-inline-end-style: double;">This is a paragraph with a double inline-end border.</p>
  

The output of the above code will be:

This is a paragraph with a double inline-end border.

Example 4: Setting the border-inline-end-style to groove

In this example, we will set the border-inline-end-style property to groove:

  
    <p style="border-inline-end-style: groove;">This is a paragraph with a grooved inline-end border.</p>
  

The output of the above code will be:

This is a paragraph with a grooved inline-end border.

Example 5: Setting the border-inline-end-style to ridge

In this example, we will set the border-inline-end-style property to ridge:

  
    <p style="border-inline-end-style: ridge;">This is a paragraph with a ridged inline-end border.</p>
  

The output of the above code will be:

This is a paragraph with a ridged inline-end border.

Example 6: Setting the border-inline-end-style to inset

In this example, we will set the border-inline-end-style property to inset:

  
    <p style="border-inline-end-style: inset;">This is a paragraph with an inset inline-end border.</p>
  

The output of the above code will be:

This is a paragraph with an inset inline-end border.

Example 7: Setting the border-inline-end-style to outset

In this example, we will set the border-inline-end-style property to outset:

  
    <p style="border-inline-end-style: outset;">This is a paragraph with an outset inline-end border.</p>
  

The output of the above code will be:

This is a paragraph with an outset inline-end border.

Example 8: Setting the border-inline-end-style to inherit

In this example, we will set the border-inline-end-style property to inherit:

  
    <div style="border-inline-end-style: solid;">
      <p style="border-inline-end-style: inherit;">This is a paragraph with a solid inline-end border inherited from the parent element.</p>
    </div>
  

The output of the above code will be:

This is a paragraph with a solid inline-end border inherited from the parent element.

As you can see from the above examples, the border-inline-end-style property can be used to add visual interest to your HTML elements. By using different values for this property, you can create a variety of border styles that can help to make your content more engaging and visually appealing.

Conclusion

The border-inline-end-style property is a useful tool for adding borders to your HTML elements. By using this property, you can create a variety of border styles that can help to make your content more visually appealing. Whether you are working on a personal website or a professional project, the border-inline-end-style property is a valuable tool to have in your CSS toolbox.

References

Activity