| Author |
dreamweaver and new line
|
|
|
| hi,
I type some text and then I want to start a new sentence in new line so i
push ENTER but its going to start typeing in 3rd line not in 2nd...how to
solve this problem//
| |
| SpaceGirl 2006-08-24, 6:57 pm |
|
Marek wrote:
> hi,
>
> I type some text and then I want to start a new sentence in new line so i
> push ENTER but its going to start typeing in 3rd line not in 2nd...how to
> solve this problem//
You need to look at the HTML. Open a split pane and view the code as
you are typing your text in the WYSIWYG view. Notice what happens when
you hit enter? DW closes the <p> tag and starts over. What's happening
is not that you're skipping a line, but a end of paragraph is being
inserted. If you want to break a paragraph without actually starting a
new paragraph insert a <br /> in the code instead.
<p>This is some text I'm writing. Okay now I want to break the line,
but not end the paragraph yet.<br/> Now this text is on a new line.
So.... now we close the paragraph.</p>
Shortcut to do this? SHIFT+Enter instead of just Enter.
| |
| mbstevens 2006-08-24, 6:57 pm |
| On Thu, 24 Aug 2006 04:16:54 -0700, SpaceGirl wrote:
> <p>This is some text I'm writing. Okay now I want to break the line,
> but not end the paragraph yet.<br/> Now this text is on a new line.
> So.... now we close the paragraph.</p>
I would add that there are better and worse reasons for doing this.
If one is actually doing it because they prefer the new line as a way of
showing a new paragraph, they should work at restyling the way some of
their paragraphs display in CSS, instead of using <br/> as some kind of
sub-paragraph within a real paragraph.
Sometimes a <pre> or <code> section might be better. These display
any newlines in the markup.
This doesn't mean that <br/> is always wrong, but if you see a lot of them
on a page's markup there may be a better way of doing things. Look for
the tag that best semantically represents the section of writing.
| |
| SpaceGirl 2006-08-24, 6:57 pm |
|
mbstevens wrote:
> I would add that there are better and worse reasons for doing this.
>
> If one is actually doing it because they prefer the new line as a way of
> showing a new paragraph, they should work at restyling the way some of
> their paragraphs display in CSS, instead of using <br/> as some kind of
> sub-paragraph within a real paragraph.
>
> Sometimes a <pre> or <code> section might be better. These display
> any newlines in the markup.
>
> This doesn't mean that <br/> is always wrong, but if you see a lot of them
> on a page's markup there may be a better way of doing things. Look for
> the tag that best semantically represents the section of writing.
Agreed, but from the question I guess the OP wasn't that technical so I
tried to keep it simple. HTML is confusing enough at the start, without
throwing CSS into the mix :)
| |
| Karl Groves 2006-08-24, 6:57 pm |
| Marek <mm@mm.pl> wrote in news:11q9qm2sylcq0.a2by39a4ug6j$.dlg@40tude.net:
> hi,
>
> I type some text and then I want to start a new sentence in new line so i
> push ENTER but its going to start typeing in 3rd line not in 2nd...how to
> solve this problem//
>
<p>Stuff here</p>
<p>Next paragraph of stuff</p>
--
Karl Groves
www.karlcore.com
| |
| Karl Groves 2006-08-24, 6:57 pm |
| Karl Groves <karl@NOSPAMkarlcore.com> wrote in
news:Xns98297833258C3karlkarlcorecom@216.196.97.136:
> Marek <mm@mm.pl> wrote in
> news:11q9qm2sylcq0.a2by39a4ug6j$.dlg@40tude.net:
>
>
> <p>Stuff here</p>
> <p>Next paragraph of stuff</p>
>
I just re-read your problem
What you don't like is the fact that there's a lot of space between the
lines.
The "problem" is that Dreamweaver interprets your striking the ENTER key as
a desire for a new paragraph. What is happening is that the markup
Dreamweaver creates is exactly as I've shown above.
This is the problem with WYSIWYG editors. They're simply unable to
understand exactly what you mean, so they're left to guess. In this case,
DW's guess is that you want a new paragraph.
If you DO want a new paragraph, but don't like the big space between them,
then you need to learn how to use CSS to close them.
If you don't want a new paragraph and really do want a line break, then you
need to insert one. Turn off "Design" view, switch to "Code and Design"
view, and stop leaning on the crutch.
--
Karl Groves
www.karlcore.com
| |
|
| SpaceGirl wrote:
> HTML is confusing enough at the start, without throwing CSS into the mix :)
Wrong ;-)
HTML is confusing enough at the start, without throwing DreamWeaver
into the mix :-)
--
Els http://locusmeus.com/
Now playing: Madness - Shut Up
| |
| mbstevens 2006-08-24, 6:57 pm |
| On Thu, 24 Aug 2006 18:26:39 +0200, Els wrote:
> SpaceGirl wrote:
>
>
> Wrong ;-)
> HTML is confusing enough at the start, without throwing DreamWeaver
> into the mix :-)
To get a beginner's mind wrapped around it, give them a
good template and tell them to slowly and incrementally modify it,
checking validation of both CSS and HTML at regular intervals.
And for goodness sake keep them away from older HTML books.
| |
|
| mbstevens wrote:
> On Thu, 24 Aug 2006 18:26:39 +0200, Els wrote:
>
>
> To get a beginner's mind wrapped around it, give them a
> good template and tell them to slowly and incrementally modify it,
> checking validation of both CSS and HTML at regular intervals.
> And for goodness sake keep them away from older HTML books.
Better even: let them sit next to me for an afternoon or two, while I
explain the basics as they operate the keyboard ;-)
--
Els http://locusmeus.com/
Now playing: 2 Unlimited - Sensuality
| |
| Red E. Kilowatt 2006-08-24, 6:57 pm |
| Marek <mm@mm.pl> wrote in message:
11q9qm2sylcq0.a2by39a4ug6j$.dlg@40tude.net,
> hi,
>
> I type some text and then I want to start a new sentence in new line
> so i push ENTER but its going to start typeing in 3rd line not in
> 2nd...how to solve this problem//
If you're not ready to look "under the hood" (html or css) then just use
this:
Shift-Enter
That's, hold down the shift key before you press enter. That'll give you
what's called a line break.
In html, it looks like this:
<p>This is one line<br>
This is another</p>
--
Red
| |
| SEOwebMarket.com 2006-08-25, 3:44 am |
|
Red E. Kilowatt wrote:
> Shift-Enter
> That's, hold down the shift key before you press enter. That'll give you
> what's called a line break.
It's called a "soft-return". Windows machines get very confused over
these, especially in your email programs. It's also the answer to
fixing the icky double/quadruple spacing errors that appear in outlook
emails.
This isn't a Dreamweaver issue, it's standard in all page layout
programs to use both hard and soft-returns.
- Brett (www.SEOwebMarket.com)
| |
|
| SEOwebMarket.com wrote:
> Red E. Kilowatt wrote:
>
> It's called a "soft-return". Windows machines get very confused over
> these, especially in your email programs. It's also the answer to
> fixing the icky double/quadruple spacing errors that appear in outlook
> emails.
Only in email and IM programs the difference between soft and hard
returns means going to a new line or send off your message. Not quite
the same as the effect in Dreamweaver, where it means the difference
between a new line and a new paragraph.
> This isn't a Dreamweaver issue, it's standard in all page layout
> programs to use both hard and soft-returns.
I'll take your word for that, but the OP asked about Dreamweaver ;-)
--
Els http://locusmeus.com/
| |
| Daniel R. Tobias 2006-08-25, 10:45 pm |
| SpaceGirl wrote:
> If you want to break a paragraph without actually starting a
> new paragraph insert a <br /> in the code instead.
Only if you're using XHTML; if your DOCTYPE is HTML, use <br> instead.
It's a commonplace idiocy in the Web these days for people to use bogus
pseudo-XHTML syntax in documents with HTML doctypes.
--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
| |
| SEOwebMarket.com 2006-08-27, 3:31 am |
| Daniel R. Tobias wrote:[color=darkred]
> SpaceGirl wrote:
In Dreamweaver and HTML:
soft-return = <br>
return = </p>
In MS Word:
soft-return = ^l (carot + lowercase L)
return = ^p
To fix this issue in windows email, you have to copy the text and paste
it into word and use find/replace to replace all of the returns (which
sometimes end up showing as triple spacing) with soft-returns. I went
to a ton of forums to try to figure out the email triple-spacing issue
for an ex-partner - seems that I am the only one that knows how to fix
it.
- Brett (www.SEOwebMarket.com)
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |