How to center a layer ?

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

  1. #1

    Default How to center a layer ?

    Hello friends.. I have created a pop up menu with a tool that creates de code
    in Javascript. The I have setted it on a layer (if I do not do it, the code
    displays in a different line of the screen) .Well, it works, but the problem
    now is when I see the web site on a wider screen... the layers and its content
    do not move, but the rest of the page does, because it is all centered... the
    result is a mess with the layers.... I have been trying to create a table and
    attach the layer to it (to one of its cells) but seems there is no way to do
    it.... what should I do ? please help ! thanx a lot

    Sw Jiten Guest

  2. Similar Questions and Discussions

    1. Center layer vertically via CSS
      I just read the post from rob::digitalburn on doing vertical centering, but is there a way to do this via CSS instead of script? Thanks.
    2. Bottom layer spoils its upprt layer
      In my bottom layer, I have a gradient fill in gray color. On top of this layer, I have some paragraphs in blue color. I want the bottom layer has no...
    3. PE2: Selecting and painting a layer having a Hidden Power Tools' layer mask?
      I am making a collage using PE2. I have a background layer (solid color) and then each photo is on its own layer with a layer mask used from the...
    4. Layer problem...How do I center my opening page??
      PLEASE...HELP!!!!! Check my page at http://www.tanzatelier.com/ and see how the "fly over top images" are not centered if the screen resolution is...
  3. #2

    Default Re: How to center a layer ?

    Answered on the DW forum.

    --
    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
    ==================


    "Sw Jiten" <webforumsuser@macromedia.com> wrote in message
    news:emak1k$o1v$1@forums.macromedia.com...
    > Hello friends.. I have created a pop up menu with a tool that creates de
    > code
    > in Javascript. The I have setted it on a layer (if I do not do it, the
    > code
    > displays in a different line of the screen) .Well, it works, but the
    > problem
    > now is when I see the web site on a wider screen... the layers and its
    > content
    > do not move, but the rest of the page does, because it is all centered...
    > the
    > result is a mess with the layers.... I have been trying to create a table
    > and
    > attach the layer to it (to one of its cells) but seems there is no way to
    > do
    > it.... what should I do ? please help ! thanx a lot
    >

    Murray *ACE* Guest

  4. #3

    Default Re: How to center a layer ?

    hello Murray... I certainly like your well known short answers... except this time.... I did not understand... where was it answered ?? thanx in advance...
    Sw Jiten Guest

  5. #4

    Default Re: How to center a layer ?

    Why, right here!

    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.


    --
    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
    ==================


    "Sw Jiten" <webforumsuser@macromedia.com> wrote in message
    news:emiq0u$adp$1@forums.macromedia.com...
    > hello Murray... I certainly like your well known short answers... except
    > this time.... I did not understand... where was it answered ?? thanx in
    > advance...

    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