- Posts: 3
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- mp3 player width & height values not working in responsive template
mp3 player width & height values not working in responsive template
- Mark Wilson
-
Topic Author
- Offline
- New Member
Less
More
11 years 10 months ago - 11 years 10 months ago #52860
by Mark Wilson
mp3 player width & height values not working in responsive template was created by Mark Wilson
I set the template to responsive, then set default values in the audio parameters setup, but the player is not responding to those settings in a custom html module. Width and height do work in the other two templates. Is this normal?
Please Log in or Create an account to join the conversation.
- Michael Yaeger
-
- Offline
- Premium Member
Less
More
- Posts: 87
9 years 1 month ago #151621
by Michael Yaeger
Replied by Michael Yaeger on topic mp3 player width & height values not working in responsive template
I, too, am having this issue. It seems to stem from an improperly configured CSS for the "Responsive" player. However, I haven't had time to troubleshoot, yet.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 1 month ago #151653
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic mp3 player width & height values not working in responsive template
This is normal. The responsive layout will take all the available space it has. That's why the width is not applied. A responsive element has a 100% width so it's width is actually controlled by the container element.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Michael Yaeger
-
- Offline
- Premium Member
Less
More
- Posts: 87
9 years 1 month ago #151656
by Michael Yaeger
Agreed, that is why the width element is not accepted. However, the height variable should still be accepted for the audio player as a fixed value.
Also, the ratio of width:height should still be accepted for videos. The responsive layout automatically defaults to a 16:9 ratio, which is not always the case. A better CSS scenario for videos is to set the width to 100% and the height to auto so that the aspect ratio remains intact. This is the most common practice for responsive elements, especially images.
Replied by Michael Yaeger on topic mp3 player width & height values not working in responsive template
Lefteris wrote: This is normal. The responsive layout will take all the available space it has. That's why the width is not applied. A responsive element has a 100% width so it's width is actually controlled by the container element.
Agreed, that is why the width element is not accepted. However, the height variable should still be accepted for the audio player as a fixed value.
Also, the ratio of width:height should still be accepted for videos. The responsive layout automatically defaults to a 16:9 ratio, which is not always the case. A better CSS scenario for videos is to set the width to 100% and the height to auto so that the aspect ratio remains intact. This is the most common practice for responsive elements, especially images.
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- mp3 player width & height values not working in responsive template