not appearing within layers? (divs)

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

  1. #1

    Default   not appearing within layers? (divs)

    I've got a layer on my page, and when I type in text into the layer in the
    Design mode, I notice that a corresponding " " does not appear in the
    code, even though a return is visible on the page. When viewing said page in
    any browser, though, the returns are not there. I can enter the " " into
    the code and all is well.

    This only happens (as far as I can tell) when typing text within the layer.
    Outside of the layer I can type in text in the design mode, " " appears
    and all appears well in browsers.

    Is there perhaps something I need to set in preferences so that when I press
    return in design mode while within a layer, I mean for it to be a non-breaking
    space?

    Thanks

    I'll include the code from the body if that'll help:

    <body>

    <div id = "logo">
    <img border="0" src="newlogo.jpg" width="228" height="100">
    </div>

    <div id="toplistlayer">
    <ul id="toplist">
    <li><a href="Home.html">Home</a></li>
    <li><a href="Who.html">Who We Are</a></li>
    <li id="active"><a href="What_We_Offer.html" id="current">What We
    Offer</a></li>
    <li><a href="Support.html">Support Us</a></li>
    <li><a href="Events_and_News.html">Events and News</a></li>
    </ul>
    </div>

    <div id="sublistlayer" >
    <ul id="sublist">
    <li><a href="Offer/PI.html">Private<br>Instruction</a></li>
    <li><a href="Offer/GI.html">Group<br>Instruction</a></li>
    <li><a href="Offer/MT.html">Music<br>Therapy</a></li>
    <li><a href="Offer/EC.html">Early<br>Childhood</a></li>
    <li><a href="Offer/PE.html">Performing<br>Ensembles</a></li>
    <li><a href="Offer/WC.html">Workshops and<br>
    Master Classes</a></li>
    <li><a href="Offer/ME.html">For Music<br>Educators</a></li>
    </ul>
    </div>

    <div id="content" class="style1">
    <p class="style2">
    What We Offer</p>
    <p class="style6">Music Works offers a variety of music experiences for
    people of all ages and interests. We are a comprehensive musical community with
    resources to help develop the skills and musical potential of each student.
    Offerings include but are not limited to:<br>
    <p>&nbsp;</p>
    <p class="style2">Private Instruction (one on one lessons)<br>
    Group Instruction (learn with your friends!)<br>
    Music Therapy (licensed something?)<br>
    Early Childhood (Music classes for the young learners)<br>
    Performing Ensembles (Auditioned groups with performance opportunites)<br>
    Workshops and Master Classes (less commitment!)<br>
    For Music Educators
    <p class="style2">
    </div>
    <div style="position: absolute; width: 503px; height: 100px; z-index: 1; left:
    98px; top: 417px" id="layer1">
    Here's some text
    <p>Here's some more</p>
    <p>&nbsp;</p>
    <p>And more</div>
    </body>

    cfresolone Guest

  2. Similar Questions and Discussions

    1. &nbsp; and null fields in a datagrid
      in the itemDatabound event of a datagrid, both null fields and blank string come through as &nbsp; in the e.items.cells field. Is there anyway to...
    2. Showing all spaces without using the &nbsp;
      I am using ASP to read code from a text file that I am displaying on my page. Because I do not want the code from the text file to be executed, I...
    3. formatting date() and nbsp;
      What I have is a date that I'd like to format to keep it together on one line using non-breaking spaces. I started with: date...
    4. &nbsp; constant
      is there a constant for &nbsp; within the .net framework?
    5. What does &nbsp; mean
      Newbie here. What does &nbsp mean in code?
  3. #2

    Default Re: &nbsp; not appearing within layers? (divs)

    It's a very bad idea to put text into layers (or any absolutely positioned
    page element). Notwithstanding that, however, I don't understand what your
    question is - a corresponding &nbsp;?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (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
    ==================


    "cfresolone" <webforumsuser@macromedia.com> wrote in message
    news:dnd3al$pbc$1@forums.macromedia.com...
    > I've got a layer on my page, and when I type in text into the layer in the
    > Design mode, I notice that a corresponding "&nbsp;" does not appear in the
    > code, even though a return is visible on the page. When viewing said page
    > in
    > any browser, though, the returns are not there. I can enter the "&nbsp;"
    > into
    > the code and all is well.
    >
    > This only happens (as far as I can tell) when typing text within the
    > layer.
    > Outside of the layer I can type in text in the design mode, "&nbsp;"
    > appears
    > and all appears well in browsers.
    >
    > Is there perhaps something I need to set in preferences so that when I
    > press
    > return in design mode while within a layer, I mean for it to be a
    > non-breaking
    > space?
    >
    > Thanks
    >
    > I'll include the code from the body if that'll help:
    >
    > <body>
    >
    > <div id = "logo">
    > <img border="0" src="newlogo.jpg" width="228" height="100">
    > </div>
    >
    > <div id="toplistlayer">
    > <ul id="toplist">
    > <li><a href="Home.html">Home</a></li>
    > <li><a href="Who.html">Who We Are</a></li>
    > <li id="active"><a href="What_We_Offer.html" id="current">What We
    > Offer</a></li>
    > <li><a href="Support.html">Support Us</a></li>
    > <li><a href="Events_and_News.html">Events and News</a></li>
    > </ul>
    > </div>
    >
    > <div id="sublistlayer" >
    > <ul id="sublist">
    > <li><a href="Offer/PI.html">Private<br>Instruction</a></li>
    > <li><a href="Offer/GI.html">Group<br>Instruction</a></li>
    > <li><a href="Offer/MT.html">Music<br>Therapy</a></li>
    > <li><a href="Offer/EC.html">Early<br>Childhood</a></li>
    > <li><a href="Offer/PE.html">Performing<br>Ensembles</a></li>
    > <li><a href="Offer/WC.html">Workshops and<br>
    > Master Classes</a></li>
    > <li><a href="Offer/ME.html">For Music<br>Educators</a></li>
    > </ul>
    > </div>
    >
    > <div id="content" class="style1">
    > <p class="style2">
    > What We Offer</p>
    > <p class="style6">Music Works offers a variety of music experiences for
    > people of all ages and interests. We are a comprehensive musical community
    > with
    > resources to help develop the skills and musical potential of each
    > student.
    > Offerings include but are not limited to:<br>
    > <p>&nbsp;</p>
    > <p class="style2">Private Instruction (one on one lessons)<br>
    > Group Instruction (learn with your friends!)<br>
    > Music Therapy (licensed something?)<br>
    > Early Childhood (Music classes for the young learners)<br>
    > Performing Ensembles (Auditioned groups with performance
    > opportunites)<br>
    > Workshops and Master Classes (less commitment!)<br>
    > For Music Educators
    > <p class="style2">
    > </div>
    > <div style="position: absolute; width: 503px; height: 100px; z-index: 1;
    > left:
    > 98px; top: 417px" id="layer1">
    > Here's some text
    > <p>Here's some more</p>
    > <p>&nbsp;</p>
    > <p>And more</div>
    > </body>
    >

    Murray *TMM* Guest

  4. #3

    Default Re: &nbsp; not appearing within layers? (divs)

    I realize I didn't quite cleary state the actual issue--let me try again!

    I'm in DW--I've got a layer (div) created. In design mode--I type in text.
    Within my text I have returns. In DW, text looks like I mean it look. Let's
    say, for example, the following is the text:

    Private Instruction

    Group Instruction

    Classes

    (end of text example)
    In the design view in DW--it appears like above (which is the way I want to
    have it appear). However, in the CODE in DW, "&nbsp"s do not appear in between
    each line of text. When I am typing text into something outside of the layer,
    the "&nbsp"s DO appear in the code.

    The problem? When a viewer parses the code, there are no returns! So the
    text then appears as such:

    Private InstructionGroup InstructionClasses



    I am also very curious as to why using text in a layer is a very bad idea.
    What would I use layers for? I can already position my images fine--and I
    wouldn't want then to put a table in a layer, since there will most likely be
    text.

    In my code example, the nbsp that appears in the code--I typed that directly
    into the code.

    Thanks

    cfresolone Guest

  5. #4

    Default Re: &nbsp; not appearing within layers? (divs)

    Do what you have just described, and then copy and paste the *code* for it
    into a reply, please.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (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
    ==================


    "cfresolone" <webforumsuser@macromedia.com> wrote in message
    news:dnknde$41s$1@forums.macromedia.com...
    >I realize I didn't quite cleary state the actual issue--let me try again!
    >
    > I'm in DW--I've got a layer (div) created. In design mode--I type in
    > text.
    > Within my text I have returns. In DW, text looks like I mean it look.
    > Let's
    > say, for example, the following is the text:
    >
    > Private Instruction
    >
    > Group Instruction
    >
    > Classes
    >
    > (end of text example)
    > In the design view in DW--it appears like above (which is the way I want
    > to
    > have it appear). However, in the CODE in DW, "&nbsp"s do not appear in
    > between
    > each line of text. When I am typing text into something outside of the
    > layer,
    > the "&nbsp"s DO appear in the code.
    >
    > The problem? When a viewer parses the code, there are no returns! So the
    > text then appears as such:
    >
    > Private InstructionGroup InstructionClasses
    >
    >
    >
    > I am also very curious as to why using text in a layer is a very bad idea.
    > What would I use layers for? I can already position my images fine--and I
    > wouldn't want then to put a table in a layer, since there will most likely
    > be
    > text.
    >
    > In my code example, the nbsp that appears in the code--I typed that
    > directly
    > into the code.
    >
    > Thanks
    >

    Murray *TMM* Guest

  6. #5

    Default Re: &nbsp; not appearing within layers? (divs)

    > I am also very curious as to why using text in a layer is a very bad idea.
    > What would I use layers for? I can already position my images fine--and I
    > wouldn't want then to put a table in a layer, since there will most likely
    > be
    > text.
    This is a long answer.

    Layers are absolutely positioned page elements (<div> tags when you insert
    them from DW's Menu). One of the consequences of being absolutely
    positioned is that the element is removed from the normal flow of code on
    the page. This means that the absolutely positioned element can no longer
    affect the location of any other element on the page. If the layer grows in
    size (because the visitor has enlarged the browser's display of text on the
    page), then that layer cannot push any adjacent content around, and will
    therefore begin to flow over top of it. The result is usually a big
    overlapping mess. This is a direct consequence of using absolutely
    positioned elements to contain text. It will happen whether the text is in
    a table in the layer or directly in the layer. That's why it's a bad idea
    to use layers to hold text.


    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (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
    ==================


    "cfresolone" <webforumsuser@macromedia.com> wrote in message
    news:dnknde$41s$1@forums.macromedia.com...
    >I realize I didn't quite cleary state the actual issue--let me try again!
    >
    > I'm in DW--I've got a layer (div) created. In design mode--I type in
    > text.
    > Within my text I have returns. In DW, text looks like I mean it look.
    > Let's
    > say, for example, the following is the text:
    >
    > Private Instruction
    >
    > Group Instruction
    >
    > Classes
    >
    > (end of text example)
    > In the design view in DW--it appears like above (which is the way I want
    > to
    > have it appear). However, in the CODE in DW, "&nbsp"s do not appear in
    > between
    > each line of text. When I am typing text into something outside of the
    > layer,
    > the "&nbsp"s DO appear in the code.
    >
    > The problem? When a viewer parses the code, there are no returns! So the
    > text then appears as such:
    >
    > Private InstructionGroup InstructionClasses
    >
    >
    >
    > I am also very curious as to why using text in a layer is a very bad idea.
    > What would I use layers for? I can already position my images fine--and I
    > wouldn't want then to put a table in a layer, since there will most likely
    > be
    > text.
    >
    > In my code example, the nbsp that appears in the code--I typed that
    > directly
    > into the code.
    >
    > Thanks
    >

    Murray *TMM* 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