Answers for "css round div"

CSS
47

css rounded corners

/* Set rounded corners with border-radius property */

.class {
  border-radius: 4px;
}

.circle {
  border-radius: 50%;
}
Posted by: Guest on February-15-2020
1

round div

.circle {
  border-radius: 50%;
  height: 100px;
  width: 100px;
}
Posted by: Guest on April-25-2021
0

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;
}
Posted by: Guest on October-21-2020
4

css rounded corners

/* Use border-radius property */

.class {
  border-radius: 5px;
}

.circle {
  border-radius: 50%;
}
Posted by: Guest on July-25-2020
1

css round element

/* I find it best to use pixels*/
    border-radius: 5px;

/* Percents don't work well with elements that aren't square*/
    border-radius: 10%;
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language