Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

css
communitycreator

What is border-radius property in CSS?

Minahil Areej

The border-radius property is used to round corners of elements.

Syntax

The border-radius property can have one to four values. These values can be in:

  • pixels
  • percentage
  • em
  • CSS
Values in px and Percentage
  • CSS
Values in em(em is relative to font size)

Making elliptical shapes

Border-radius is also used to make elliptical shapes by specifying the horizontal and vertical radii of elements.

It is done by using '/' between two values.

The value is set to initial to get the default value of the property.

  • CSS
Examples using ' / '

RELATED TAGS

css
communitycreator
RELATED COURSES

View all Courses

Keep Exploring