Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

164
Views
How can I make the default audioplayer background be transparent

I want to make the background for the audio player be transparent. With the thing I tried I can change the color to any color but it wasn't working when I put transparent.

audio::-webkit-media-controls-play-button,
     audio::-webkit-media-controls-panel {
     background-color: transparent;
     }

7 months ago · Juan Pablo Isaza
2 answers
Answer question

0

Like @snow said, you can't make the background transparent but you could make its opacity 0
something like this:

audio{
  opacity: 0%;
}
7 months ago · Juan Pablo Isaza Report

0

is it possible to change just using CSS? the short answer is no, It's NOT possible. An audio player is an object created by the browser itself, that's why it looks different depending on the browser you use.

You can apply the same background color to the audio tag if your parent or body background is white you need to apply the same for audio

audio::-webkit-media-controls-play-button,
 audio::-webkit-media-controls-panel {
 background-color: #fff;
 color: #fff;
 
 }

enter image description here

7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs