Use the CSS border-radius property to set the arc

Use the CSS border-radius property to set the arc

Phenomenon:

Change the div into a circle, ellipse, etc. with a certain amplitude

method:

Use the CSS border-radius property to set

CSS3 border-radius property: Add rounded borders to div elements:

1: First create a div

2: Set the radius of the rounded border for div

3: When the arc of the div is set to 50%, the square will become a circle

4: If you set a 50% arc for the rectangle, you will get an ellipse

5: What if you need to set both sides of the straight line in the middle of the rectangle to arcs?

Just use pixels px instead of percentages.

6. Mark all angles at once and set them differently

Seven: You can also set different angles separately

Summarize

The above is what I introduced to you about using CSS border-radius attribute to set arcs. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

<<:  Collection of 12 practical web online tools

>>:  HTML scroll bar textarea attribute setting

Recommend

HTML reuse techniques

HTML reuse is a term that is rarely mentioned. Tod...

How to inherit CSS line-height

How is Line-height inherited?Write a specific val...

How to show or hide common icons on the desktop in Windows Server 2012

Windows Server 2012 and Windows Server 2008 diffe...

Pure CSS implementation of radio and checkbox effect example

radio-and-checkbox Pure CSS to achieve radio and ...

How to clear mysql registry

Specific method: 1. Press [ win+r ] to open the r...

Some tips for writing high-performance HTML applications

How can you improve web page performance? Most de...

How to install and configure the Docker Compose orchestration tool in Docker.v19

1. Introduction to Compose Compose is a tool for ...

Pure CSS3 realizes the effect of div entering and exiting in order

This article mainly introduces the effect of div ...

How to allow all hosts to access mysql

1. Change the Host field value of a record in the...

Example of how to identify the user using a linux Bash script

It is often necessary to run commands with sudo i...

Vue + element to dynamically display background data to options

need: Implement dynamic display of option values ...