Strange YouTube embed coding question

  • Started
  • Last post
  • 22 Responses
  • CygnusZero40

    Eskema, here's the problem. What you set up works fine for landscape vids. I had that working days ago. I need this to work for a portrait youtube vid. YT now allows for embedded portrait vids without any black bars or anything.

    So Im trying to make it so that it scales to the browser size by height, not width. Naturally if I have a portrait vid set to 100% width, the vid is going to end up being much taller than the viewable area on your landscape monitor. No good.

    I NEED this to be portrait for a very specific reason not worth getting into here. The concept calls for it and no way around that.

    • And as I said earlier, its easy to make landscape vids scale properly just using CSS. Ive done it, but thats not what I need.CygnusZero4
    • AwesomeESKEMA
  • CygnusZero40

    Well Im actually almost there without using any JS. Just CSS, and have a portrait YT vid that is responsive, and doesnt fill the width of the screen which was my problem from the start.

    The last problem I have it YT seems to default to having a black background. Can this be set to transparent, or change the color of it?

    Im doing a lot of googling and cant find anything that works.