This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > June 2004 > Stop inserting <p> when pressing Enter/Return?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Stop inserting <p> when pressing Enter/Return?
|
|
| HooHaster 2004-06-10, 12:14 pm |
| It friggin drives me crazy! When I press Enter/Return when writing text, I
want it to go to the next line, not start a new paragraph. I've tried setting
text paragraph to None, but whenever I press Enter it automatically goes back
to Paragraph form. Can you change the default Text->Paragraph to None?
| |
| Murray *TMM* 2004-06-10, 12:14 pm |
| You don't want to do this. HTML regards each press of return as a new
paragraph. If you want to change the space between the lines of each
successive paragraph, it makes much more sense (and is much easier) to
simply use CSS to control the top and bottom margins on the <p> tag.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"HooHaster" <webforumsuser@macromedia.com> wrote in message
news:ca9o9r$l1m$1@forums.macromedia.com...
> It friggin drives me crazy! When I press Enter/Return when writing text,
I
> want it to go to the next line, not start a new paragraph. I've tried
setting
> text paragraph to None, but whenever I press Enter it automatically goes
back
> to Paragraph form. Can you change the default Text->Paragraph to None?
>
| |
| James Shook 2004-06-10, 12:14 pm |
| Press <shift> + <return> to go to the next line. This will insert a <br>
tag, not form a new paragraph.
In general it is a good idea to let the container of the text force
lines to wrap naturally. If you try formatting line structure with <br>
tags, you may get undesirable results if the text's container is fluid
and/or the text is resized by the viewer.
--------------------<br>
--------------------<br>
--------------------<br>
Now the container is narrower or the text enlarged:
---------------
-----<br>
---------------
-----<br>
---------------
-----<br>
--
James M. Shook
http://www.jshook.com
| |
| HooHaster 2004-06-10, 12:14 pm |
| OMG I <3 YOU!
Thanks!
| |
| genuine airguitar 2004-06-10, 12:14 pm |
| Try SHIFT ENTER.
| |
| darrel 2004-06-10, 12:14 pm |
| > OMG I <3 YOU!
But do listen to the others. There's usually a better way to do what you
need to do than to insert a bunch of BR tags (they are useful in certain
cases, though.)
-Darrel
| |
|
| return = <p>, i.e. paragraph break, NOT LINE break.
For a line break, press Shift AND Return at the same time.
HooHaster wrote:
> It friggin drives me crazy! When I press Enter/Return when writing text, I
> want it to go to the next line, not start a new paragraph. I've tried setting
> text paragraph to None, but whenever I press Enter it automatically goes back
> to Paragraph form. Can you change the default Text->Paragraph to None?
>
| |
| Mick White 2004-06-10, 7:14 pm |
|
seb wrote:
> return = <p>, i.e. paragraph break, NOT LINE break.
> For a line break, press Shift AND Return at the same time.
Or do nothing.....
Mick
| |
|
| don't be so hard headed.
I'm answering the question: how to make a line break, not a paragraph break.
Besides, there are many circumstances where one DOES want to force a
line break (and NOT go TWO lines bellow).
What are you gonna say next, that <BR> is invalid html?....
Mick White wrote:
>
>
> seb wrote:
>
>
>
> Or do nothing.....
> Mick
| |
| Murray *TMM* 2004-06-10, 7:14 pm |
| See - if you really understood CSS, you'd know that you can use a normal
paragraph and not go "two lines bellow". 8) In fact, even an unadulterated
regular paragraph doesn't go two lines....
In most cases like what the OP described, using a line break will eventually
produce undesirable results.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"seb" <sebnewyork@earhlink.netTakeThisOut> wrote in message
news:caa4ao$754$1@forums.macromedia.com...
> don't be so hard headed.
> I'm answering the question: how to make a line break, not a paragraph
break.[color=darkred]
> Besides, there are many circumstances where one DOES want to force a
> line break (and NOT go TWO lines bellow).
>
> What are you gonna say next, that <BR> is invalid html?....
>
> Mick White wrote:
>
| |
| Mick White 2004-06-10, 7:14 pm |
| I'm flailing myself in atonement. You're quite right, of course.
But the OP appears to be in a DTP mindset, rather than in HTML mode.
Mick
seb wrote:
[color=darkred]
> don't be so hard headed.
> I'm answering the question: how to make a line break, not a paragraph
> break.
> Besides, there are many circumstances where one DOES want to force a
> line break (and NOT go TWO lines bellow).
>
> What are you gonna say next, that <BR> is invalid html?....
>
> Mick White wrote:
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|