By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

<p> tag not wrapping

P: n/a
I have experienced this issue in both IE and in Firefox, but usually
not the same page at the same time.

I'll have text that begins and ends with the paragraph tag <p>. This
tag is suppose to automatically wrap text based on the resolution of
the viewer's monitor. Invariably what happens is that the text will
display as thought there is a no-wrap argument.

Right now I'm working on a template which will be the bases for my
pages in a new website. I have some garbage text in a paragraph to
represent the data that will eventually be there. When I view the page
in IE it looks fine. When I view it in Mozilla Firefox it does not
wrap.

Previously I had a site that did the same thing in IE. On one computer
it would wrap when viewed in IE and on another computer it did not.

What the heck is going on here?!?!?

How can I FORCE my text to wrap AND still float based on the viewer's
resolution?

Thanks,
Tammy

Jan 14 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hello, Tammy. I'm feeling in a pedantic mood today, which isn't always
good, but I hope my comments will be helpful.

The main thing I want to whine about is the sloppy use of the term
"tag". Your subject line suggests the <ptag should wrap, but the tag
is really only the three-character string < p >. If you had left the
"tag" out, you'd have been more correct; a <p(meaning a paragraph
marked up as such) should be expected to wrap. A better, friendlier
explanation is at http://www.html.net/tutorials/html/lesson3.asp.

TheTamdino wrote:
I have experienced this issue in both IE and in Firefox, but usually
not the same page at the same time.

I'll have text that begins and ends with the paragraph tag <p>.
Here's that picky little point again, but potentially more serious. My
faux-arrogant (or is it faux-naive?) response: "Ah, there's your problem
then! You shouldn't end your text with a <ptag; you should end it with
the </ptag." Heh. (Actually, it wouldn't be a fatal error, but I could
use my know-it-all voice and you would cower in fear. It'd be cool.)

That's the simple difference between the word "tag" and the word
"element". You want the text marked up as a paragraph, so you add an
opening <ptag at the beginning and a closing </ptag to the end. The
text so delimited has become a paragraph element (often *called* a <p>
element for short).
This
tag is suppose to automatically wrap text based on the resolution of
the viewer's monitor.
Well, the tag doesn't *do* anything. The browser might cause wrapping of
text to occur when it renders the page, but the tags just sit there in
the source. And the resolution is only part of the equation; consider
browser window size and display of browser "chrome".
Invariably what happens is that the text will
display as thought there is a no-wrap argument.

Right now I'm working on a template which will be the bases for my
pages in a new website. I have some garbage text
A-ha! ;-)
in a paragraph to
represent the data that will eventually be there. When I view the page
in IE it looks fine. When I view it in Mozilla Firefox it does not
wrap.
Can you provide an URL for such a page? And say what version of browsers
you're testing with, window size, screen res, and whether your FF is
using a user stylesheet? Does that FF browser *always* fail to wrap
texts? Is this non-breaking text in a table?
>
Previously I had a site that did the same thing in IE. On one computer
it would wrap when viewed in IE and on another computer it did not.
Odd. Bizarre. Spooky. Possibly haunted. Do you have an URL for this
site, too? (And same questions about the differences between computers.)

HTH
--
John
Jan 14 '07 #2

P: n/a
Scripsit TheTamdino:
What the heck is going on here?!?!?
You're multiposting, that's what's going on. It's foolish and disruptive,
and so is you babbling about a problem when you don't specify a URL.
How can I FORCE
You haven't read the group much before starting to post here,
it seems.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Jan 14 '07 #3

P: n/a
John Hosking wrote:
TheTamdino wrote:
>Right now I'm working on a template which will be the bases for my
pages in a new website. I have some garbage text

A-ha! ;-)
First thing I though of is the garbage text has no spaces in it... <g>

--
-bts
-Motorcycles defy gravity; cars just suck
Jan 14 '07 #4

P: n/a

TheTamdino wrote:

You didn't tell us a URL, so how can we help you?
I'll have text that begins and ends with the paragraph tag <p>.
This sentence is nonsensical in a valid HTML sense. We might have been
able to make sense of it (or at least, what you meant it to say) if
only you'd given us a URL.

PS - Cross-port if you have to, but don't ever multi-post.

Jan 15 '07 #5

P: n/a

So that I may clarify:

I am using <pand </pto wrap my text.

The text has spaces in it.

The text is "garbage text" because I am working on the formatting of
the page, not the content. (headers, footers, breadcrumbs, css file,
etc.)

The text I am using is "data data data data data data " etc. (without
the quotes)

In Firefox, the text is not wrapping. In IE it is wrapping just fine.

I did not provide a link because it is not online yet.

I did search the group, but was getting too many hits which did not
relate to my subject and was not finding hits which did. This is why I
posted.

Tammy

Jan 17 '07 #6

P: n/a

John Hosking wrote:
Can you provide an URL for such a page?
Unfortunately, no. I haven't published any of these pages yet.
However, Firefox seems to have straightened up once I actually put the
text I intended. Odd. Bizarre. Spooky. Possibly haunted... indeed!
And say what version of browsers you're testing with,
I.E. 6.0
Firefox 2.0.0.1
window size, screen res, and whether your FF is
using a user stylesheet?
The window size and screen res are not a factor in this. Yes, I'm
using a stylesheet, but I have not included anything in the stylesheet
which would create a no-break situation.
Does that FF browser *always* fail to wrap
texts?
No, it usually does wrap.
Is this non-breaking text in a table?
No. I didn't even start working with a table until about 30 minutes
ago.

Tammy

Jan 17 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.