Keyword

mp3 player width & height values not working in responsive template

  • Mark Wilson
  • Mark Wilson's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago - 11 years 10 months ago #52860 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.

More
9 years 1 month ago #151621 by Michael Yaeger
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.

More
9 years 1 month ago #151653 by Lefteris
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.

More
9 years 1 month ago #151656 by Michael Yaeger

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.


Powered by Kunena Forum