Jump to content

text is overflowing over iframe

Recommended Posts

Site URL: https://www.johncervantes.co.uk/music/past

I've embedded a Bandcamp music player using an html code block. It looks good on desktop and mobile, but with a screen size in between (iPad etc) the text on the right starts to cover the iframe. I tried to fix it by adding this custom css

div#block-yui_3_17_2_1_1655199650584_9623 {
    min-width: 350px;

But that's not worked. Am I close? Does anyone know what I need to change. Thanks

Screenshot 2022-06-14 111737.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

oh well actually I've decided to just use a different streaming platform for the embed - the iframe code for Spotify results in a responsive width, so no issues. I removed the uneccesary custom css.

I think the problem I was having was that the div I set the min-width for was the child of a div that was set to 33.3% (4/12 columns). I could have added a min-width but that div didn't have an id, only classes...

If I had wanted to target that div, how would I specify that particular one with custom css? But anyway my problem is solved.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.