You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added this to my _index.md homepage and am using the 'profile' layout. I wanted the iframe to stretch to the maxmimum width and change dynamically (smaller if on a phone and larger if on a desktop)
However, using width="100%" does not set the width to the full width of the page, and changing the width using set values makes the iframe extend to the right and it is no longer centered.
I have tried using css in the custom.css to align it correctly and ensure it sizes dynamically but it doesn't work:
the embed just extends in the right direction. What is the best way to set the width to the page width (with padding) and adjust depending on the display width of a device?
I apologise if this is too much for discussions please let me know if this is something for stack overflow
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I am trying to use a spotify embed iframe on my homepage:
I have added this to my _index.md homepage and am using the 'profile' layout. I wanted the iframe to stretch to the maxmimum width and change dynamically (smaller if on a phone and larger if on a desktop)
However, using width="100%" does not set the width to the full width of the page, and changing the width using set values makes the iframe extend to the right and it is no longer centered.
I have tried using css in the custom.css to align it correctly and ensure it sizes dynamically but it doesn't work:
the embed just extends in the right direction. What is the best way to set the width to the page width (with padding) and adjust depending on the display width of a device?
I apologise if this is too much for discussions please let me know if this is something for stack overflow
Beta Was this translation helpful? Give feedback.
All reactions