I'm having trouble giving this a border-radius 50px


#1

Without messing up the colors.
https://jsfiddle.net/d7k6hubw/

.wrapa {
  position: relative;
  width: 606px;
  height: 50px;
  cursor: pointer;
  margin-top: 8px;
  border: 3px solid #0059dd;
  box-sizing: border-box;
  
}

.wrapa.active {
  background: #ffffff;
}

.wrapa.active::before,
.wrapa.active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 198px;
  height: 44px;
}

.wrapa.active::before {
  left: 0;
  background-color: #00ffff;
}

.wrapa.active::after {
  right: 0;
  background-color: #ff00ff;
}

.wrapa .play,
.wrapa .pause {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  cursor: pointer;
}

.wrapa .lines::before,
.wrapa .lines::after {
  content: "";
  position: absolute;
  top: 0;
  left: 198px;
  width: 3px;
  height: 44px;
  background: #0059dd;
}

.wrapa .lines::after {
  left: 399px;
}

.hide {
  display: none;
}

#2

Hi there asasass,

what is the “this” to which you wish to apply a border-radius?

coothead


#3

border-radius: 50px;

right and left borders.


#4

br


#5

Click on it:

The other side:

That’s where the colors are.


#6
.wrapa {
  position: relative;
  width: 606px;
  height: 50px;
  cursor: pointer;
  margin-top: 8px;
  border: 3px solid #0059dd;
  box-sizing: border-box;
  border-radius: 50px;
  overflow: hidden;
}