circle background css code example

Example 1: circle background image css

.customization_text img {
    background: #383838;
    padding: 30px;
    border-radius: 50%;
    display:block;
    width:50px;
    height:50px;
}

Example 2: make span html circle css

span {
    display: block;
    height: 60px;
    width: 60px;
    line-height: 60px;

    -moz-border-radius: 30px; /* or 50% */
    border-radius: 30px; /* or 50% */

    background-color: black;
    color: white;
    text-align: center;
    font-size: 2em;
}

Example 3: how to make a circle in html

<svg xmlns="http://www.w3.org/2000/svg">
    <circle cx="50" cy="50" r="50" fill="red" />
</svg>

Tags:

Css Example