Forum Moderators: open
If you run into trouble implementing this, feel free to post back with the code that's causing trouble and we'll do our best to help. :)
#myFrame{
all of my properties
}
in my css file
Also I want this iframe to show up like 10 px to the left and 10px down from a specific link how would I position that. We recently lost our front end designer at my job so i'm new to all of this formatting stuff. Thanks,
test.php (theres no php yet)
<html>
<head>
<link rel= StyleSheet href="test.css" type="text/css">
<script id="clientEventHandlersJS" language="javascript">
<!--
function Show()
{
var tDiv = document.getElementById("dvSample");
tDiv.style.visibility="visible";
tDiv.innerHTML = "hello world";
}
//-->
</script>
</head>
<form id="form1">
<body>
<center><input type="button" value="Show" id="Button1" name="Button1" onclick="Show()"></center>
<center>
<div id="dvSample">
</div>
Some other text
</center>
</form>
</body>
</html>
test.css
#dvSample{
display: inline;
visibility: hidden;
background-image: url("images/br_paper.jpg");
height: 300em;
width: 300em;
}
for some reason its just as big as hello world. Also it moves Some other text. How do I make it just display overtop of everything and be a set size? Thanks
function Show()
{
var tDiv = document.getElementById("dvSample");
tDiv.style.display="block";
tDiv.innerHTML = "hello world";
}
And these for the css:
#dvSample{
background-image: url("images/br_paper.jpg");
position: absolute;
top: 3em;
left: 50%;
margin-left: -150em;
height: 300em;
width: 300em;
}
And declare the display:none; on the div itself:
<div id="dvSample" style="display: none;">