Forums

This topic is locked

Layers problem in Dreamweaver

Posted 18 Mar 2007 19:59:57
1
has voted
18 Mar 2007 19:59:57 suteja rao posted:
I have been trying to insert a layer in dreamweaver but all I get when I do is a dotted box stretching across the entire workspace on the top which looks a lot like a table not a layer at all (also does not have layer handle). Further, no layer is added on the Layer palette and when I select the dotted box in the workspace , only 2 attributes are displayed in the Properties viz DIV ID and Class. Can someone please tell me how to solve this . I really don't know what to do.

I have tried re-installing Dreamweaver twice and no difference.Please do let me know how I can get a proper layer.

Replies

Replied 18 Mar 2007 21:06:43
18 Mar 2007 21:06:43 Javier Castro replied:
Go to Insert ---> Layout Objects then select Layer. It should work. OR go to Code view and verify the type of object it is. Or show the code you get.
Replied 19 Mar 2007 09:35:31
19 Mar 2007 09:35:31 suteja rao replied:
Thanks Javier for your reply.
I get the same however i insert the table (if i use the button in the Insert/ Layout or Insert-->Layout objects-->Layer)

The code i get is

<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:100px;
background-color:#FFFFFF;
layer-background-color:#FFFFFF;
border:1px none #000000;
z-index:1;
}
-->
</style>
<script 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>

Again as I said before I don't get a layer added to the Layers palette or any properties other than DIV ID and Class!!! Help please
Replied 19 Mar 2007 14:43:24
19 Mar 2007 14:43:24 suteja rao replied:
Quote
Thanks Javier for your reply.
I get the same however i insert the table (if i use the button in the Insert/ Layout or Insert-->Layout objects-->Layer)

The code i get is

<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:100px;
background-color:#FFFFFF;
layer-background-color:#FFFFFF;
border:1px none #000000;
z-index:1;
}
-->
</style>
<script 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>

The above is in the <head> tag and in the ,body. tag it only says <div id="Layer1"></div>

All this when I insert a table. Can u make head or til of it? If so do expplain please
Replied 19 Mar 2007 15:05:58
19 Mar 2007 15:05:58 suteja rao replied:
<b>
In fact after analyzing the codes, when I insert a Layer, it treats it (at least in the code) exactly like if I insert a DIV tag. No difference whatsoever.</b>
Replied 20 Mar 2007 02:44:30
20 Mar 2007 02:44:30 Javier Castro replied:
what version of DW are u using?
Replied 20 Mar 2007 11:11:23
20 Mar 2007 11:11:23 suteja rao replied:
Dreamweaver 8
Replied 13 Sep 2008 00:56:45
13 Sep 2008 00:56:45 Tracey Ramsdale replied:
Hi, I am having exactly the same problem with layers- did you ever solve it please? I am totally baffled. Thanks for any help.

T Ramsdale

Reply to this topic