Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluid iFrame height #12

Closed
RyanRoberts opened this issue Mar 18, 2014 · 1 comment
Closed

Fluid iFrame height #12

RyanRoberts opened this issue Mar 18, 2014 · 1 comment

Comments

@RyanRoberts
Copy link

Here's a quick example of how to make the iFrame fully respond rather than being a fixed height: http://codepen.io/RyanRoberts/pen/Ckgas/

One important point to note is that the height is relative to the container width (in this case the .wrapper width) and not the module width itself. Pretty standard RWD stuff.

Maybe consider this as an additional module for Fluidity? My own version uses BEM style classes so that I can apply it to just about anything and not just iFrames.

@mrmrs
Copy link
Owner

mrmrs commented Apr 9, 2014

@RyanRoberts - Thanks! Added this. Still mulling over how I want to handle multiple aspect ratios.

@mrmrs mrmrs closed this as completed Apr 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants