Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
cfresolone #1
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> </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> </p>
<p>And more</div>
</body>
cfresolone Guest
-
and null fields in a datagrid
in the itemDatabound event of a datagrid, both null fields and blank string come through as in the e.items.cells field. Is there anyway to... -
Showing all spaces without using the
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... -
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... -
constant
is there a constant for within the .net framework? -
What does mean
Newbie here. What does   mean in code? -
Murray *TMM* #2
Re: 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 ?
--
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 " " 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> </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> </p>
> <p>And more</div>
> </body>
>
Murray *TMM* Guest
-
cfresolone #3
Re: 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, " "s do not appear in between
each line of text. When I am typing text into something outside of the layer,
the " "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
-
Murray *TMM* #4
Re: 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, " "s do not appear in
> between
> each line of text. When I am typing text into something outside of the
> layer,
> the " "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
-
Murray *TMM* #5
Re: not appearing within layers? (divs)
> I am also very curious as to why using text in a layer is a very bad idea.
This is a long answer.> 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.
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, " "s do not appear in
> between
> each line of text. When I am typing text into something outside of the
> layer,
> the " "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



Reply With Quote

