How to set fancybox height and width identical?

Can you set an element's height based on it's width with css?

Brian at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Better... How to Size an IFRAME According to its Content: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm Ron

Shadow Knows

try making the width 200%. No, actually just concentrate on the containers dimensions and go with 100% on both.

JerryOfBorg

There might be something you can do with css 3, but it's not going to be widely supported. Why not just set a static height?

You would have to set an explicit width and height for something like an iframe. ...

D

You would have to set an explicit width and height for something like an iframe. ...

GuyOnEarth

There might be something you can do with css 3, but it's not going to be widely supported. Why not just set a static height?

try making the width 200%. No, actually just concentrate on the containers dimensions and go with 100% on both.

JerryOfBorg

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.