Width depends of height

Posted by TRAVA on Stack Overflow See other posts from Stack Overflow or by TRAVA
Published on 2010-04-15T14:42:13Z Indexed on 2010/04/15 15:33 UTC
Read the original article Hit count: 243

Filed under:
|
|
|

Can u show me completed html code where it is some rectangle in it with "height=75% of my screen" and "widtht=4/3 of height". So, it should be 3:4 re?tangle where height depends of my screenheight, but width do not depends of my screenwidth. Only of screenheight.

i thought i understood previus time, but it was not so.

I have this:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="colorbox/jquery.colorbox.js"></script>
<script type="text/javascript">
    $(document).ready(function(){ 
        $(".example7").colorbox({width:"80%", height:"80%", iframe:true});
    });
</script> 

And i dont know what to do with the width.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html