473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

<p> tag not wrapping

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
6 9749
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
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
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

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

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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
1
by: RJN | last post by:
Hi I'm using XMLTextReader to parse the contents of XML. I have issues when the xml content itself has some special characters like & ,> etc. <CompanyName>Johnson & Jhonson</CompanyName>...
1
by: JezB | last post by:
I'm binding a DataGrid web-control to data fetched from a database. However some of my data fields contain text that is within <...> characters - I notice that everything between the <> is...
1
by: RJN | last post by:
Hi I'm using XMLTextReader to parse the contents of XML. I have issues when the xml content itself has some special characters like & ,> etc. <CompanyName>Johnson & Jhonson</CompanyName>...
1
by: mike | last post by:
I've got some code like this: gametype_id = Request.Form("gametype_id") response.write "<br>gametype_id from form>" & gametype_id & "<" response.write "<br>gametype_id from database>" &...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
44
by: Zytan | last post by:
The docs for List say "The List class is the generic equivalent of the ArrayList class." Since List<is strongly typed, and ArrayList has no type (is that called weakly typed?), I would assume...
14
by: Michael | last post by:
Since the include function is called from within a PHP script, why does the included file have to identify itself as a PHP again by enclosing its code in <?php... <?> One would assume that the...
3
by: Josh Valino | last post by:
Hi, I have a client that has our product and in one of the aspx files, there is code like this: <%= SomePublicProperty %> where the public property returns a string. In the test...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.