Solved

Tables

Posted on 1998-08-26
8
175 Views
Last Modified: 2010-04-09
I am using ASP. I have a html form that writes to a ASP file. I am trying to figure how to keep a table a certain length without growing outside the size I want to maintain.

When the data goes into the table, it increases the size of the table, instead of wrapping the text.

Your help is greatly appreciated.
0
Comment
Question by:jwilliams1
  • 2
  • 2
  • 2
  • +2
8 Comments
 

Expert Comment

by:tecmaster
ID: 1837106
Set the table's WIDTH property to the size that you want it, eg. <TABLE WIDTH=600>  and that should solve your problem.
0
 

Author Comment

by:jwilliams1
ID: 1837107
I set the table to 50% but when the memo field writes to the ASP file, it does not wrap the text in the table. It just writes the text in one continuous line inside the table instead of wrapping it in the specified width.

Is there something I am overlooking in having the tables a fixed width regardless of the information that is written to that table via ASP?

Your help is greatly appreciated.
0
 

Expert Comment

by:tecmaster
ID: 1837108
I am not very familiar with ASP.  You may just have to set a fixed with for the table to make it work.  If my answer doesn't work please reject and someone else will stop by to provide an answer.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 28

Expert Comment

by:sybe
ID: 1837109
It seems that your problem is related to the data from the memofield. This probably does not contain any spaces and hard returns, which are the "breaks" where the text is wrapped by the browser. It also might be the case that you use the <PRE> tag in the table cell, and the line of text from the memofield is without hard returns, then the text won't be wrapped either.

If you can show the HTML result of your ASP page (not the ASP-code, but what you get when you view the source in your browser), a more precise answer might be given.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1837110
Also, what browser are you using?  IE or NS... Is the data directly on the page or is it in a textbox?
0
 

Accepted Solution

by:
maximi earned 20 total points
ID: 1837111
What about:
<table border="1" width="100%">
maybe if you specify the percentage, the table won't grow out of the page...
0
 

Author Comment

by:jwilliams1
ID: 1837112
I have tried both IE and Netscape and neither of the two will work. I have also tried to place the text outside of the table and it still does not wrap. I have also tried making a fixed width for the table and needless to say, it does not work.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1837113
Can you please post that part of your ASP page and the output?  That would be most helpful... If you don't want to post it, please meail it to me at masseym@hotmail.com

Thanks
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Are there any non javascript based chart/graph solutions? 14 31
CSS Logo Problem. 2 21
Zoom the page when you go in from your phone 3 54
Javasctipt 2 26
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question