Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 03-29-2007, 11:51 PM Misformatted Pages
Novice Talker

Posts: 12
Trades: 0
Hi.

I have an ASP page that gets information from a database. Every so often (randomly, it seems) the text on the page will not be formatted it right. It will only have one or two words per line. If you look in the source code for the page, it is not adding breaks, the text is just displaying incorrectly.

Anyone have this problem?

Thanks.
MIDNIGHTBANDIT9 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-30-2007, 01:54 AM Re: Misformatted Pages
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
No. But I'm not sure what problem you're describing, so maybe I have had it, but don't realize. Could you give us a URL or screen capture?

It kind of sounds like the text is in a div or td that's too small, and wrapping?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-30-2007, 02:27 AM Re: Misformatted Pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
I'd have to agree with John. Maybe your problem is that you're putting in words that are too large (such as antidisestablishmentarianism) into a space that isn't big enough to comfortably fit them (such as a div that's only 100 pixels wide.)

Another possibility is that, if you're using a table, that you're not specifying cell widths. Use the header row (if you have one) to specify row widths so that they're consistent, and that may well nail your problem (it's solved mine on more than one occasion).

A URL would be the ideal approach; that way we could see both the output and the code used to generate it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-30-2007, 07:35 AM Re: Misformatted Pages
Novice Talker

Posts: 12
Trades: 0
It looks like I might have fixed it. I placed a pair of <span> tags around the content that was being pulled and now it works fine. The div that the text is in is set to 100% via a stylesheet, and that is in a containing div that is about 650px. So its shouldn't be too small. Since I can't get it to not format right since, I don't have a screencap (this site is still on my local testing server). If it happens again I'll take one and post it.

Thanks.
MIDNIGHTBANDIT9 is offline
Reply With Quote
View Public Profile
 
Old 03-30-2007, 11:02 PM Re: Misformatted Pages
Novice Talker

Posts: 12
Trades: 0
Nevermind my last post. It is doing it again. Although now I (think) I have narrowed it down to Internet Explorer 7. This website is now on the web, and when I navigate to the same page on an computer with Internet Explorer 6, it loads fine. The computer that is displaying the misformatted page is Windows Vista with IE7. I have included a screenshot. Do you think this could just be a minor flaw with IE7?

The source as viewed in the webpage looks like this (I have edited the code just to be safe, right now the owner does not want the link on the web because of sensative content on the webpages. We will be removing this soon, so if this dosn't get fixed I will be able to supply a URL.):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<!-- Begin Google META Tag DO NOT REMOVE! -->
<meta name="verify-v1" content="KohDZvn5hMLjyt1OnMtducS3G0Ud9GdzEXzNv3k10 Pk=" />
<!-- End Google META Tag -->
<title>*********</title>
</head>
<!-- Begin Body -->
<body>
<div class="body">
<!-- Begin Banner -->
<div class="banner">
<img src="/images/banner_2007.jpg" alt="*********" />
</div>
<!-- End Banner -->
<!-- Begin Menu -->
<div class="menu">
<a href="/pages/main/"><img src="/images/menu/home.jpg" alt="Home" border="0px" /></a>
<a href="/pages/about_us/"><img src="/images/menu/aboutus.jpg" alt="About Us" border="0px" /></a>
<a href="/pages/contact/"><img src="/images/menu/contact.jpg" alt="Contact" border="0px" /></a>
<a href="/pages/news/"><img src="/images/menu/news.jpg" alt="News" border="0px" /></a>
<a href="/pages/game_recaps/"><img src="/images/menu/game_recaps.jpg" alt="Game Recaps" border="0px" /></a>
<a href="/pages/calendar/"><img src="/images/menu/eventscalendar.jpg" alt="Events Calendar" border="0px" /></a>
<a href="/pages/roster/"><img src="/images/menu/roster.jpg" alt="Roster" border="0px" /></a>
<a href="/pages/directions/"><img src="/images/menu/directions.jpg" alt="Directions" border="0px" /></a>
<a href="/pages/gallery/"<img src="/images/menu/photoalbums.jpg" alt="Photo Albums" border="0px" /></a>
<a href="/pages/handouts/"><img src="/images/menu/handouts.jpg" alt="Handouts" border="0px" /></a>
<a href="/pages/sponsors/"><img src="/images/menu/sponsors.jpg" alt="Sponsors" border="0px" /></a>
<a href="/pages/fundraisers/"><img src="/images/menu/fundraisers.jpg" alt="Fundraisers" border="0px" /></a>
<a href="/pages/coach_resources/"><img src="/images/menu/coach_resources.jpg" alt="Coach Resources" border="0px" /></a>
<div class="copyright">
<p>Copyright &copy; 2007 *********</p>
</div>
</div>
<!-- End Menu -->
<div class="content">
<!-- Bein Titlebar. Titlebar information is pulled from the database. No work needed here. -->
<div class="titlebar">
<img src="/images/heading_images/home_page.jpg" alt="********* Home Page" />
</div>
<!-- End Titlebar -->
<!-- Bein Main Content -->
<div class="content2">
<div width="100%">
<p><p><img height="643" alt="" width="575" src="/images/2006-2007_season/2007_Team.jpg" /></p>
<h4>Announcements:</h4>
<p>Tomorrow's game will&nbsp;be starting around 5:45, so please try to arrive around 5 PM.&nbsp; Also, remember to wear <strong><u>BLACK UNIFORMS, BLACK SOCKS, WARMUPS.</u></strong></p>
<p>We will only have 9 players, so if there is any problems attending, please let me know ASAP.</p>
<ul>
<li><a href="/pages/directions/details/?id=1">Directions to Saturday's game at *********.</a></li>
<li><a href="/pages/polls/team_song">Players: Vote for our 2007 Team Song!</a></li>
</ul>
<h4>Our Vision:</h4>
<p>We would like to provide an opportunity and environment for aspiring girls to grow and learn the fundamental skills necessary to become exceptional softball players as well as extraordinary young women.</p>
<h4>Our Goal:</h4>
<p>Our goal is to build a highly competitive team that will ultimately compete on a state and national level. While that is our objective, we will always keep in mind that this is a kids game, played by and enjoyed by kids. While every coach and parent would like their girls to be highly successful, we need to insure that they enjoy the experience and have fun and build a lifetime of happy memories. We have a great group of girls and an outstanding group of families and we are committed to keeping this atmosphere. Others may judge the worth of our team by our success on the field, but we will continue to judge our success as coaches and as parents by the lifetime friendships that we have developed. THAT will be our ultimate objective.</p></p>
</div>
<p><a href="/administrator2/login.asp">[Administrator]</a>&nbsp; &nbsp; <a href="/administrator2/login.asp?mode=player">[Player]</a></p>
</div>
<!-- End Main Content -->
</div>
</div>
</body>
<!-- End Body -->
</html>

TIA for any help.
Attached Images
File Type: jpg Untitled.jpg (19.2 KB, 4 views)

Last edited by MIDNIGHTBANDIT9; 03-30-2007 at 11:13 PM..
MIDNIGHTBANDIT9 is offline
Reply With Quote
View Public Profile
 
Old 03-30-2007, 11:56 PM Re: Misformatted Pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Well, it's clearly not an ASP error. My hunch is that it's your menu that's causing it. Try converting it to an unordered list and see what happens.

Also, you have some code validation errors (I see two paragraph tags in succession) which may be contributing.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-31-2007, 12:25 AM Re: Misformatted Pages
Novice Talker

Posts: 12
Trades: 0
I will try changing the menu. I know there are validation errors, but the owner of this site updates the pages in the admin section using FCKeditor. Something must be a little off with it because every time I fix that error, it comes back, but ill look further into it.

Thanks, and will try.
MIDNIGHTBANDIT9 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Misformatted Pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.37726 seconds with 13 queries