ggordon
Programmer
- Sep 15, 2003
- 45
I want to know if there is a way to DRAW a layer within Dreamweaver .. and instead of having the css information added "inline" as part of the div tag that shows up within the page ... I want to have only the div tag created .. with just a reference to a "class" (in the head or in an external file) .. which would include all the positioning information, etc., etc.
Currently when I create a layer .. I get something like this:
<div id="Layer1" style="position:absolute; left:398px; top:405px; width:109px; height:99px; z-index:1; visibility: visible;">Text within Layer.</</div>
But, what I want is something like this:
<div id="Layer1" class="style1">Text within Layer.</div>
and ... then in the head or in an external style sheet .. the following:
<style type="text/css">
<!--
position: absolute;
left: 398px;
top: 405px;
width: 109px;
height: 99px;
z-index: 1;
visibility: visible;
-->
</style>
I am trying to figure out if this can be automatically created in this way .. using Dreamweaver? Because .. when I create the layer using Dreamweaver .. it puts all the information "in line" with the div tag.
Can the style information be separated "automatically" when using Dreamweaver to create the layers? Is there a way to do this in Dreamweaver so it is automatically created this way .. as opposed to the current way that it does create it?
Any suggestions .. aside from "do it by hand" hahaha.
Thanks,
Gary
Currently when I create a layer .. I get something like this:
<div id="Layer1" style="position:absolute; left:398px; top:405px; width:109px; height:99px; z-index:1; visibility: visible;">Text within Layer.</</div>
But, what I want is something like this:
<div id="Layer1" class="style1">Text within Layer.</div>
and ... then in the head or in an external style sheet .. the following:
<style type="text/css">
<!--
position: absolute;
left: 398px;
top: 405px;
width: 109px;
height: 99px;
z-index: 1;
visibility: visible;
-->
</style>
I am trying to figure out if this can be automatically created in this way .. using Dreamweaver? Because .. when I create the layer using Dreamweaver .. it puts all the information "in line" with the div tag.
Can the style information be separated "automatically" when using Dreamweaver to create the layers? Is there a way to do this in Dreamweaver so it is automatically created this way .. as opposed to the current way that it does create it?
Any suggestions .. aside from "do it by hand" hahaha.
Thanks,
Gary