No replies
Stigg07
Stigg07's picture
Offline
newbie
East Yorkshire
Last seen: 11 years 51 weeks ago
East Yorkshire
Joined: 2009-12-08
Posts: 2
Points: 3

As can be seen in the code below the iframe height and width can be set by the container, is there a way to i.e set the width by the container, but set the height by the content be that content an image or text (in html of course).

Looking forward to any response.

Stigg07.

<html>
 
<head>
<title></title>
 
<style type="text/css"> 
 
#size { 
width: 100%; /* Set to fit your needs */ 
height: 100%; /* Set to a minimum height as per your needs */
overflow: hidden;
}
 
#size2 { 
width: 100%; /* Set to fit your needs */ 
height: 100%; /* Set to a minimum height as per your needs */
overflow: hidden;
}
 
#size3 { 
width: 100%; /* Set to fit your needs */ 
height: 100%; /* Set to a minimum height as per your needs */
}
</style> 
 
 
</head>   
 
<body>
 
 
<div id="newswindow" name="newswindow" align="left" scrollbar="yes" style="position:absolute; top:120px; left:0px; 
 
width:280px; height:700px; padding:1; background-color:clear; border:#009946 1px dashed;">
 
<iframe id="size" name="size" src="http://www.blurbreadonline.co.uk/finance/stories/static/brokers.htm" 
 
style="padding:2; border:red 1px solid"></iframe>
 
 
<iframe id="size2" name="size2" src="http://www.blurbreadonline.co.uk/finance/stories/static/papers.htm" 
 
style="padding:2; border:blue 1px solid"></iframe>
 
<iframe id="size3" name="size3" src="http://www.blurbreadonline.co.uk/finance/stories/static/brokers.htm" 
 
style="padding:2; border:yellow 1px solid"></iframe>
 
 
</div id="newswindow">
 
</body>
 
</html>