Templates, backgrounds and editable regions.

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Templates, backgrounds and editable regions.

    A simple question with, I hope, a simple answer!
    I've designed a site that uses a background image (800x600) with links mapped
    off it. So far so good. I then added an editable region, and made it into a
    template. My problem comes from the positioning of the parts. My background
    image is set to absolute centre, but the editable region takes it's location
    from the corner of the screen, not the background, so keeps moving in different
    size displays. Is there a way to anchor the editable region to the background
    so when one moves the other does?

    Thanks in advance,

    theshakaman Guest

  2. Similar Questions and Discussions

    1. Editable Regions
      Hello, I have designed a website using dreamweaver. I chose some editable regions that I want my customer to update weekly on his own. When I...
    2. Libraries, Templates, Nested Templates, Repeat Regions,
      Hi I have eight categories to display in my site navigation. Each category has at least one (some have two) levels of subcategories. For example...
    3. Editable Regions and Locked Regions
      Using Dreamweaver, I setup two area's on my webpage as editable regions so that my marketing department can update the page. When they open the...
    4. Editable Repeating regions
      I have a template created in DW with a "Last updated : dd/mm/yy" field that I want the client to be able to change everytime they update something...
    5. Templates and editable regions
      Hello! I have just started working with templates and adding editable regions. But, all the text in the editable region is coming in one thin...
  3. #2

    Default Re: Templates, backgrounds and editable regions.

    > I've designed a site that uses a background image (800x600) with links
    > mapped
    > off it.
    You cannot map links on a background image.
    > but the editable region takes it's location
    > from the corner of the screen, not the background, so keeps moving
    The editable region is only inside some other element that is moving. This
    has nothing to do with templates. It's strictly how you have made the page.
    > Is there a way to anchor the editable region to the background
    > so when one moves the other does?
    No, but there is a way to have an element that contains the editable region
    *and* the background image, and when it moves, everything in it moves too.

    Your best bet is to post a link to your page so we can see the code.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "theshakaman" <webforumsuser@macromedia.com> wrote in message
    news:ed9abt$pfu$1@forums.macromedia.com...
    >A simple question with, I hope, a simple answer!
    > I've designed a site that uses a background image (800x600) with links
    > mapped
    > off it. So far so good. I then added an editable region, and made it into
    > a
    > template. My problem comes from the positioning of the parts. My
    > background
    > image is set to absolute centre, but the editable region takes it's
    > location
    > from the corner of the screen, not the background, so keeps moving in
    > different
    > size displays. Is there a way to anchor the editable region to the
    > background
    > so when one moves the other does?
    >
    > Thanks in advance,
    >

    Murray *ACE* Guest

  4. #3

    Default Re: Templates, backgrounds and editable regions.

    OK I lied slightly. Having dug out the problem page here is what I have done.
    Inserted a picture and mapped links off that. then added a layer and made it
    editable. As th ebrowser window expands the picture and mapped links move
    together, but the layer and editable area remain anchored to the left hand
    side. Can I anchor the layer to the picture somehow?
    The problem page is [url]http://www.skydivenavy.com/test.htm[/url] The desired result
    is at [url]http://www.skydivenavy.com[/url] where the pages are all graphics, but this in
    itself is causing more problems, not least in updating!
    Any suggestions greatfully received!

    theshakaman Guest

  5. #4

    Default Re: Templates, backgrounds and editable regions.

    Are you building ASP-javascript pages? If not, then remove this line from
    your page -

    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>

    and replace it with a valid and complete doctype, e.g.,

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    Also, best practices suggest that you not have spaces in your
    file/pathnames - please rename this file in DW's Files panel -

    <img src="/psd/skydivenavy-template%20800x600.gif"

    Then, change this -

    </head>

    to this -

    <style type="text/css">
    <!--
    body { text-align:center; }
    #wrapper { text-align:left; width:760px; margin:0 auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser window without */
    /* horizontal scrollbars. */
    -->
    </style>
    </head>

    change this -

    <body ...>

    to this -

    <body ...>
    <div id="wrapper">

    and this -

    </body>

    to this -

    <!-- /wrapper -->
    </div>
    </body>

    and see if that helps.

    (by the way, your 800px wide image will cause scrollbars on an 800px screen)

    If you are going to use layers, there are things you need to know. Please
    go here -

    [url]http://www.great-web-sights.com/g_layerlaws.asp[/url]

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "theshakaman" <webforumsuser@macromedia.com> wrote in message
    news:edeel9$er1$1@forums.macromedia.com...
    > OK I lied slightly. Having dug out the problem page here is what I have
    > done.
    > Inserted a picture and mapped links off that. then added a layer and made
    > it
    > editable. As th ebrowser window expands the picture and mapped links move
    > together, but the layer and editable area remain anchored to the left hand
    > side. Can I anchor the layer to the picture somehow?
    > The problem page is [url]http://www.skydivenavy.com/test.htm[/url] The desired
    > result
    > is at [url]http://www.skydivenavy.com[/url] where the pages are all graphics, but
    > this in
    > itself is causing more problems, not least in updating!
    > Any suggestions greatfully received!
    >

    Murray *ACE* Guest

  6. #5

    Default Re: Templates, backgrounds and editable regions.

    Here's a fix that works for me. It has the added advantage of correcting that
    annoying shift in positioning between IE and Firefox, so it's especially great
    for positioning CSS menus:

    1. Make sure that the layer that's now floating is in the same div as your
    background image, or that they're both within the same container. The easiest
    way is to create a container that holds everything within the <body></body>
    tags.

    2. Make the positioning of the outer div relative, for example, <div
    id="container" style="position:relative">

    3. Set the positioning of the inner div (or both inner divs) to absolute, for
    example,
    <div id="menu" style="position:absolute; left: 10px; top: 150px; width: 800px;
    height: 30px; z-index:10">

    Sounds counterintuitive, I know, but it works. Note that as soon as you change
    the positioning of the div from relative to absolute or vice-versa, it will
    jump wildly to a different part of your page, and you may not be able to move
    it using drag-and-drop. No worries - just change the appropriate values in code
    view until it's exactly where you want it.

    mlapointe Guest

  7. #6

    Default Re: Templates, backgrounds and editable regions.

    The best solution is to not use layers at all. In the vast majority of
    cases, you don't need to have absolutely positioned elements on the page.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "mlapointe" <webforumsuser@macromedia.com> wrote in message
    news:edf68d$a64$1@forums.macromedia.com...
    > Here's a fix that works for me. It has the added advantage of correcting
    > that
    > annoying shift in positioning between IE and Firefox, so it's especially
    > great
    > for positioning CSS menus:
    >
    > 1. Make sure that the layer that's now floating is in the same div as your
    > background image, or that they're both within the same container. The
    > easiest
    > way is to create a container that holds everything within the
    > <body></body>
    > tags.
    >
    > 2. Make the positioning of the outer div relative, for example, <div
    > id="container" style="position:relative">
    >
    > 3. Set the positioning of the inner div (or both inner divs) to absolute,
    > for
    > example,
    > <div id="menu" style="position:absolute; left: 10px; top: 150px; width:
    > 800px;
    > height: 30px; z-index:10">
    >
    > Sounds counterintuitive, I know, but it works. Note that as soon as you
    > change
    > the positioning of the div from relative to absolute or vice-versa, it
    > will
    > jump wildly to a different part of your page, and you may not be able to
    > move
    > it using drag-and-drop. No worries - just change the appropriate values in
    > code
    > view until it's exactly where you want it.
    >

    Murray *ACE* Guest

  8. #7

    Default Re: Templates, backgrounds and editable regions.

    Thanks, that almost has it. All the bits stay in the right place. The only bit
    missing is moving the whole thing to the centre of the browser if the browser
    is over 800x600. The test.htm link has been updated above.

    theshakaman Guest

  9. #8

    Default Re: Templates, backgrounds and editable regions.

    OMG is that page slow. Your little image on the bottom left is 2.5MB.
    Surely you can do better than that - start by resizing it BEFORE you upload
    it.

    You center it the way I told you in my second post. You have not yet
    completed those instructions.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "theshakaman" <webforumsuser@macromedia.com> wrote in message
    news:edjqqm$l7m$1@forums.macromedia.com...
    > Thanks, that almost has it. All the bits stay in the right place. The only
    > bit
    > missing is moving the whole thing to the centre of the browser if the
    > browser
    > is over 800x600. The test.htm link has been updated above.
    >

    Murray *ACE* Guest

  10. #9

    Default Re: Templates, backgrounds and editable regions.

    Hmm, tried that, and it all went to pot. But after combining the first two sets
    of advice, it all works well. Thanks for the help.
    P.S. I know about the size, will sort that and the other little bits now the
    site works!:smile;

    theshakaman Guest

  11. #10

    Default Re: Templates, backgrounds and editable regions.

    You're welcome. Good luck.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "theshakaman" <webforumsuser@macromedia.com> wrote in message
    news:edkg4k$h4i$1@forums.macromedia.com...
    > Hmm, tried that, and it all went to pot. But after combining the first two
    > sets
    > of advice, it all works well. Thanks for the help.
    > P.S. I know about the size, will sort that and the other little bits now
    > the
    > site works!:smile;
    >

    Murray *ACE* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139