in html file:
Code: Select all
<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<meta charset="ISO-8859-7">
<script>
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
}
</script>
</head>
<body>
<div class="menu">
<ul>
<li><a href="start.htm" target="content">home</a></li>
<li><a href="#" target="content">link 1</a></li>
<li><a href="#" target="content">link 2</a></li>
<li><a href="#" target="content">link 3</a></li>
<li><a href="#" target="content">link 4</a></li>
<li><a href="#" target="content">link 5</a></li>
<li><a href="#" target="content">link 6</a></li>
<li><a href="#" target="content">link 7</a></li>
</ul>
</div>
<div class="content"><iframe name="content" src="start.htm" frameborder="0" scrolling="no" onload="resizeIframe(this)"></iframe></div>
</div>
</body>
</html>
Code: Select all
body
{
background-image: url('background.png');
}
.menu
{
margin: 0px auto 0px 0px;
text-align: left;
position: fixed;
width: 300px;
}
a.parent, a.parent:hover/* attaches side-arrow to all parents */
{
background-image: url(nav_blue.gif);
background-position: right center;
background-repeat: no-repeat;
}
.content {
margin-left: 230px;
margin-top: 10px;
padding: 1px 16px;
height: auto;
}
/* First Level */
.menu ul
{
border: 1px solid rgba(55,55,155,0.5);
box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.3);
border-radius: 5px;
background-color: rgba(255, 255, 255, 0.9);
display: inline-table;
padding: 20px 0;
list-style: none;
}
.menu ul li
{
border: 1px solid rgba(0, 0, 0, 0.1);
-webkit-transition: all 0.2s Ease;
-moz-transition: all 0.2s Ease;
-o-transition: all 0.2s Ease;
position: relative;
}
.menu ul li:hover
{
box-shadow: inset 0px 0px 10px 0px rgba(100,100,100,0.2), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);
}
/* Hyperlink Style */
.menu a
{
font-family: Arial, Tahoma, Sans-Serif;
font-size: 16px;
font-weight: bold;
color: rgba(0,0,0,0.5);
text-decoration: none;
text-shadow: rgba(0,200,255,0.3) 1px 1px 0px;
display: block;
padding: 20px 20px;
width: 180px;
}
/* Drop down Levels */
.menu ul ul
{
display: none;
border-radius: 0px;
padding: 0px;
}
.menu ul li:hover > ul
{
display: inline-table;
position: absolute;
top: 0;
left: 100%;
}
.menu ul ul li a
{
padding: 8px 20px;
}
Code: Select all
<h2>Home page</h2>
<p>This is the home page</p>
<p>In computing, plain text is a loose term for data (e.g. file contents) that represent only characters of readable material but not its graphical representation nor other objects (floating-point numbers, images, etc.). It may also include a limited number of characters that control simple arrangement of text, such as spaces, line breaks, or tabulation characters (although tab characters can "mean" many different things, so are hardly "plain"). Plain text is different from formatted text, where style information is included; from structured text, where structural parts of the document such as paragraphs, sections, and the like are identified); and from binary files in which some portions must be interpreted as binary objects (encoded integers, real numbers, images, etc.).</p>it opens fine into the iFrame with Firefox, IE and Edge. If it is a big page like https://en.wikipedia.org/wiki/Plain_text then iFrame stays extremely small. In Chrome (v71) no resize takes place. Any help?
