Forum Moderators: open
Can anyone tell me why the div cell wont show up in my browser? Here is a copy of the code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="Again%20a%20new%20one" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ¦¦ innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div style="position:absolute; left:13px; top:93px; width:117px; height:332px; z-index:1">
<p> </p>
</div>
<table width=" 100%" border="0" cellpadding="10" cellspacing=" 0">
<tr>
<th height="65" bordercolor="#666666" id="top" scope="col"><h1>Test Page </h1></th>
</tr>
</table>
</body>
</html>
Thank you very much in advance.
EVERYTHING between <!-- and --> is a COMMENT, not executable code.
Nothing so contained will ever happen. You could write poetry in there.
Is that the problem? Is the stuff between the marks what isn't happening? -Larry
This may be a problem:
<link href="Again%20a%20new%20one" rel="stylesheet" type="text/css">
specifically
Again%20a%20new%20one
The href should be pointing to your stylesheet.
That said, the div is showing up when I use that code. Just make the background coloured so you can see it:
<div style="background-color:#999999; position:absolute; left:13px; top:93px; width:117px; height:332px; z-index:1">
I did add color to the CSS that is the "Again%20a%20new%20one" style sheet. I am not sure why it is adding the % signs unless DW automatically defaults to that in place of spaces (which now that I think of it, is probably the case). I have made about 20 pages using CSS to learn and have used a different naem on them all. Not sure why. LOL
But I will change the name on the CSS and retry. The color I have it set to is blue an it didn't show up.
The contents of the "DIV" should have shown up, but might have been a problem because of the Z-index. I normally put that other stuff (position, style, etc.) in a style sheet. Good luck.
F