Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternative way to creating layers in Dreamweaver MX 2004?

Status
Not open for further replies.

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
 
your CSS would not know where to apply itslef....it needs to be declared as class as ur using as such - on your layer
Code:
<style type="text/css">
<!--
.style1{
,,,
,,,,
}
<style>
<div id="Layer1" class="style1">Text within Layer.</div>
or by using an ID of the layer:

Code:
<style type="text/css">
<!--
#Layer1{
,,,
,,,,
}
<style>
<div id="Layer1">Text within Layer.</div>


All the best!

> need more info?
:: don't click HERE ::
 
I'm sorry. I did have the class defined. But thanks. haha

The problem isn't that.

The problem is .. I am trying to find out if and how to get Dreamweaver to create this automatically .. instead of creating the CSS "inline".

???

Do you know about this?

Gary
 
I have never herad of "inline layers". But good try.haha

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top