Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Responsive audio</title>
- <style>
- @media screen and (min-width:990px){
- audio{width:100%;height:200px;}
- }
- @media screen and (max-width:990px){
- audio{width:100%;height:200px;}
- }
- @media screen and (max-width:700px){
- audio{width:100%;height:200px;}
- }
- @media screen and (max-width:360px){
- audio{width:100%;height:200px;}
- }
- </style>
- </head>
- <body>
- <audio max-width="100%" height="auto" controls>
- <source src="jbl.mp3">
- </audio>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement