Forum Moderators: mack

Message Too Old, No Replies

CSS & templates

Why can't i put a layer inside an editable region?

         

kate theisinger

11:26 am on Jun 27, 2005 (gmt 0)

10+ Year Member



Hi. I'm trying to build a small site using CSS rather than tables (using Dreamweaver), but i'm running into problems in trying to create a template. I'm trying to use a layer to define spacing and size of an editable region on my template, and then insert further layers inside that e.r on one of the pages which uses the template. (Clear as mud so far?)

What I've done is: Put a layer on my template where i want my editable region to be. I can't seem to make the whole layer into an editable region, instead the e.r seems to appear inside the layer, but not to be affected by the layer's size or shape. On pages governed by the template I can then insert images or text inside that region, but i can't insert further layers in order to arrange layout.

I'm new to this, so i'm probably missing something blindingly obvious, but short of abandoning the template altogether or going back to working in tables, how do i solve this one?

Thanks muchly!

knippysing

4:41 pm on Jun 29, 2005 (gmt 0)

10+ Year Member



Can you post some example code from your css so I can take a look?
Also, possibly the code on the handling page as well.

Thanks!

kate theisinger

9:34 am on Jul 1, 2005 (gmt 0)

10+ Year Member



Okay, it's probably that i'm doing something dumb, but here goes...

I've actually set up two different templates in an attempt to make this work, because i'm not sure whether to make a layer into an editable region the region needs to be inside or outside of the div tags.

One:
<!-- TemplateBeginEditable name="EditRegion3" -->
<div id="Layer1" style="position:absolute; left:42px; top:159px; width:648px; height:394px; z-index:18"></div>
<!-- TemplateEndEditable -->

Two:
<div id="Layer1" style="position:absolute; left:42px; top:159px; width:648px; height:394px; z-index:18">
<!-- TemplateBeginEditable name="EditRegion3" -->EditRegion3<!-- TemplateEndEditable --></div>

I suspect that the first example is better(?), but its actually got worse since i last posted because now both templates are resulting in pages with no editable regions at all! Obviously i could insert regions into each page, but that somewhat defeats the object.

Any suggestions gratefully received!