double line feed

G

Guest

I assign a text style to a table, but when I enter text followed by a
carriage return I get a double line feed. What gives?
 
G

Guest

Ah, I've had that nightmare a few hundred times. Whenever you hit return, it
inserts a <p>nbsp;</p> until you type something into it. That forces the
extra space. This also gives Word to HTML conversion headaches, a space
between paragraphs.

Go into the code and insert a <br> instead.
 
T

Thomas A. Rowe

You have to apply the style to <p> tag which is generated when you hit the ENTER key. For a single
line return, you would hit SHIFT+ENTER keys.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
M

Murray

Nonsense. What you are calling a double line feed is the combined effect of
the top and the bottom margin on the <p> tag. That's simple to control with
CSS. And don't use <br> except for special purposes.
 
G

Guest

And that's what confuses me to no end... why is it that they use <p> in the
first place for the basic function and not <br>? In Word, it's a single line
break by default unless you format it to something differently. Setting a
style attribute to <p> sounds like a big waste of coding space when all
that's necessary is a <br>.

I could understand if Shift+Enter added the <p> tag. But that right there
just makes me raise my eyebrow in confusion.

You know what I mean?
 
W

Windsun

Word is not HTML

-------------------------------------------------------------------------
 
G

Guest

Obvious stated.

But also as obvious, FrontPage and Word are Office products. Also, creating
a WYSIWYG web page from a Word document is possible, and half of FrontPage's
capabilities are in a WYSIWYG setting. I was merely stating that uniformity
between products would make a lot of sense.

Also to Rowe, I never heard of that guideline before. Where is that written?
 
A

Andrew Murray

That's normal behaviour. Try Shift+Enter for a single line carriage return
(enters a <br> rather than a <p> tag).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top