Home >Web Front-end >Bootstrap Tutorial >How to turn a div into a circle with bootstrap

How to turn a div into a circle with bootstrap

(*-*)浩
(*-*)浩Original
2019-07-18 16:35:275834browse

border-radius, domestically translated as rounded corners, you may think that this attribute is used to draw rounded corners, yes, but in addition, it can do other things.

How to turn a div into a circle with bootstrap

radius actually refers to the radius of the circle where the border is located. This CSS3 property can not only create rounded corners, but also create circles, and put these corners in different orders and sizes. To display, it can be drawn into a variety of graphics. (Recommended learning: Bootstrap video tutorial)

Use border-radius to set the label into a circle. As long as the value of border-radius is set to 50%, it can become Round.

Example:

    

    
    
        <div></div>
        <input>
    

Rendering:

How to turn a div into a circle with bootstrap

More For technical articles related to Bootstrap, please visit the Bootstrap Tutorial column to learn!

The above is the detailed content of How to turn a div into a circle with bootstrap. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn