The circle() function is an inbuilt function in CSS which is used to create floating text around the circuler shape picture or anything else.
Syntax:
circle(100px at 10px 150px);
or
circle( percentage );
Parameter: This function accepts single parameter length or percentage which is used to hold the value of radius. It is a mandatory parameter.
Return value: It makes the text circuler as user want.
Example 1: With percentage procedure, we will proceed.
<!DOCTYPE html> <html> <head> <title> CSS cirlce() function </title> <style> div { float: left; width: 185px; height: 185px; shape-outside: circle(); } img { border-radius: 50%; } h1, h4 { text-align: center; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h4>CSS | cirlce() function</h4> <div> <img src= alt="Sample image"> </div> <p>How many times were you frustrated while looking out for a good collection of programming/algorithm/interview questions? What did you expect and what did you get? This portal has been created to provide well written, well thought and well explained solutions for selected questions. An IIT Roorkee alumnus and founder of GeeksforGeeks. He loves to solve programming problems in most efficient ways. Apart from GeeksforGeeks, he has worked with DE Shaw and Co. as a software developer and JIIT Noida as an assistant professor.It is a good platform to learn programming. It is an educational website. Prepare for the Recruitment drive of product based companies like Microsoft, Amazon, Adobe etc with a free online placement preparation course.</p> </body> </html> |
Output:

Example 2:
<!DOCTYPE html> <html> <head> <title> CSS cirlce() function </title> <style> div { float: left; width: 200px; height: 200px; shape-outside: circle(135px at 55px 50px); } img { border-radius: 0px 10px 130px 0px; } h1, h4 { text-align: center; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h4>CSS | cirlce() function</h4> <div> <img src= alt="Sample image"> </div> <p>How many times were you frustrated while looking out for a good collection of programming/algorithm/interview questions? What did you expect and what did you get? This portal has been created to provide well written, well thought and well explained solutions for selected questions. An IIT Roorkee alumnus and founder of GeeksforGeeks. He loves to solve programming problems in most efficient ways. Apart from GeeksforGeeks, he has worked with DE Shaw and Co. as a software developer and JIIT Noida as an assistant professor. It is a good platform to learn programming. It is an educational website. Prepare for the Recruitment drive of product based companies like Microsoft, Amazon, Adobe etc with a free online placement preparation course.</p> </body> </html> |
Output:

Supported browser: The browser supported by CSS | circle() Function are listed below:
- Google Chrome
- Microsoft Edge
- Mozila Firefox
- Safari
- Opera
Recommended Posts:
- How to draw a circle with gradient border using CSS ?
- How to Draw a Semi-Circle using HTML and CSS ?
- PHP | ImagickDraw circle() Function
- p5.js | circle() Function
- How to override the CSS properties of a class using another CSS class ?
- Difference between bootstrap.css and bootstrap-theme.css
- How to add shadow to a canvas circle using Fabric.js ?
- How to draw Inscribed circle of a triangle using p5.js ?
- How to create a canvas circle using Fabric.js ?
- Fabric.js | Circle borderDashArray Property
- Fabric.js | Circle borderColor Property
- Fabric.js | Circle borderOpacityWhenMoving Property
- How to change background color of a canvas circle using Fabric.js ?
- Fabric.js | Circle cornerColor Property
- Fabric.js | Circle cornerDashArray Property
- Fabric.js | Circle cornerSize Property
- Fabric.js | Circle cornerStrokeColor Property
- How to scale controlling border of a canvas circle using Fabric.js ?
- Fabric.js | Circle fill Property
- Fabric.js | Circle hasControls Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

