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



border-end-start-radius

The border-end-start-radius property is a CSS property that is used to set the radius of the border at the start and end of an element. This property is used to create rounded corners on an element's border. It is a shorthand property that combines the border-end-start-radius-x and border-end-start-radius-y properties.

The border-end-start-radius property is part of the CSS3 specification and is supported by all modern browsers. It is a useful property for creating visually appealing designs and can be used in a variety of ways.

Usage

The border-end-start-radius property is used to set the radius of the border at the start and end of an element. It is a shorthand property that combines the border-end-start-radius-x and border-end-start-radius-y properties. The values for these properties can be specified in pixels, ems, rems, or percentages.

Here is an example of how to use the border-end-start-radius property:

<div style="border: 1px solid black; border-end-start-radius: 10px;">
  This is a div with rounded corners on the start and end of the border.
</div>

In this example, the border-end-start-radius property is set to 10 pixels. This creates rounded corners on the start and end of the border of the div element.

Examples

Here are some examples of how to use the border-end-start-radius property:

<div style="border: 1px solid black; border-end-start-radius: 10px 20px;">
  This is a div with rounded corners on the start and end of the border.
</div>

In this example, the border-end-start-radius property is set to 10 pixels on the x-axis and 20 pixels on the y-axis. This creates rounded corners on the start and end of the border of the div element.

<div style="border: 1px solid black; border-end-start-radius: 50% 50%;">
  This is a div with rounded corners on the start and end of the border.
</div>

In this example, the border-end-start-radius property is set to 50% on the x-axis and 50% on the y-axis. This creates rounded corners on the start and end of the border of the div element.

Conclusion

The border-end-start-radius property is a useful CSS property for creating rounded corners on an element's border. It is a shorthand property that combines the border-end-start-radius-x and border-end-start-radius-y properties. The values for these properties can be specified in pixels, ems, rems, or percentages. This property is supported by all modern browsers and can be used in a variety of ways to create visually appealing designs.

References

Activity