Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #176460

    Hello,
    iframe integration in coherence has a problem with height.
    First I added inline-css style=”width: 920px !important; height: 800px !important;”
    Then i tried Qick CSS with iframe {width: 100% !important; height: 100% !important; }
    Then I tried both – nothing works. Firebug came up with element.style { height: 253.571px; width: 284px; }
    The Quick CSS overruled the width with 100% !important, but the height ist still 253.571px.
    To be seen on http://autoknaus.at/?page_id=16
    Any ideas which may help?
    Thanks in advance.

    #176811

    Hello xxtita!

    Are you trying to increase the height of the google map? You can use this:

    #text-4 iframe {
    height: 500px !important;
    }

    Regards,
    Ismael

    #176904

    Hello Ismael,
    No I tried to show the iframe with the “used cars” with at least 800px height.
    The element.style which is controlled by coherence makes the iframe only 253.571px height.
    Quick CSS with iframe height:100%; does not work.
    Inline CSS with iframe height 800px also not works. The height is always overruled by element.style.
    For example: http://autoknaus.at/?page_id=16
    Quick CSS: iframe {height:100% !important;width:100% !important;}
    Html code inserted in wordpress: <iframe src=”http://www.something.com” height=”800px” width=”100%” frameborder=”0″ marginheight=”0″>
    and Firebug shows me this code: <iframe width=”100%” height=”800px” frameborder=”0″ marginheight=”0″ src=”http://www.something.com” style=”width: 284px; height: 253.571px;”>
    Any idea how i can overrule the element.style?

    #177299

    Hello!

    Please open up coherence/js/avia.js and delete following line

    
    	
    	avia_small_fixes(container);
    

    Kriesi uses this code to re-size embedded youtube videos if necessary but in your case it doesn’t make sense because the iframe does not have a 16:9 aspect ratio :)

    Cheers!
    Peter

    #177344

    hello,
    thanks – works perfect.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘iframe height in cohernce’ is closed to new replies.