Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
    <!-- SO Q:8350011 -->
    <title>Styling iFrames in stylish test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
        #idFrameWrap {
            height: 30em;
            padding: 1em;
            width: 95%;
        }
        iframe {
            height: 30%;
            width: 100%;
            border: 1px solid blue;
        }
    </style>
</head>
<body>
<p>I be the main page.</p>
<div id="idFrameWrap">iFrames follow:<br>
    Frame 1:<br>
    <iframe id="notEditable">
        <html><body></body></html>
    </iframe>
    Frame 2:<br>
    <iframe id="editable">
        <html><body contenteditable="true"></body></html>
    </iframe>
    Frame 3:<br>
    <iframe src="http://www.drudgereport.com/"></iframe>
</div>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers