473,378 Members | 1,360 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,378 software developers and data experts.

wrap long line in html tables

Hi,

Currently i am facing a problem
if my <td>***</td> contains value like

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
or
something is better than nothing and we all know that

then in both the scenarios if the size of the td is small to contain both the values
the wrap function should work and the output should be like
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa
and

something is better than nothing
and we all know that

so for the second case the whole word should come to the next line.

I have tried the work-break property for keep-all , break-all, but they either supports the first or the second one but not both at a time

Is there any single property which breaks a line when it exceeds and also take cares that the whole word should go to the next line if word spacing exists in the same <td>
May 19 '08 #1
3 4254
Death Slaught
1,137 1GB
Please try and be more specific in your problem and provide better examples of what you're trying to accomplish.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 20 '08 #2
hsriat
1,654 Expert 1GB
This thread may help you.
May 25 '08 #3
Hi, thanks for your comments
But i haven't got the solution.
The problem is i am working on a dynamic screen which depending on resolution the size of the screen will change as well as the size of the table that exists on the screen.
My code seem like
Expand|Select|Wrap|Line Numbers
  1. <div>
  2. <table>
  3. <td>
  4. contents
  5. </td>
  6. </table>
  7. </div>
now the content on <td> may be like

1. This is very good thing to take... --Words with space
2. ddddddddddddddddddddddddd --Words without space

There is a property in div called work-break where if you give the value as break-all then at the end of the line it breaks the line into a new line but my concern is

For the 1 scenario if the whole word unable to fit in the first line then the whole word should move to the next line

and for the 2 scenario after reaching the last point the next line should start.

Do you know any property where both the above scenario will work?

word-break: break-all - only second scenario satisfies
for the first scenario the whole word does not move to the next line

word-break:normal - only the first scenario satisfies
for the second scenario the non breakable line does not break after reaching the end of the td.
May 27 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: JHR | last post by:
Hey all, I'm trying to make a sidebar box float to the right of various items, and for those items to wrap if a user shrinks his browser window. Instead, in every browser I've tried except for...
5
by: name | last post by:
Back for more critique. ---------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #define MAX 10000
8
by: name | last post by:
Back again for more critique... <grin> ------------------------------------------------ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #define MAX 10000
3
by: ColinC | last post by:
Hi, as a newbie to Visual Studio C# Forms development, I'd like some advice on the following. I have a form with a tab control. I have some tab titles that are three words e.g "house &...
8
by: Mark D. Smith | last post by:
Hi I have googled but not found a solution to wordwrap in a textarea using firefox/netscape. is there a style sheet solution or am i stuck with not being able to force wrapping in a textarea...
1
by: duzhidian | last post by:
Hello: I just want to use a two columns web. If I put sidebar on the right, it there is a list, it's fine. If it is a paragraph, the width will not work? Why? In the following example,...
6
by: Victor | last post by:
Hi all i have a css question about how to wrap a long text by using css. for example I have a very long text like "ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" there...
15
by: removeps-groups | last post by:
How to wrap text in <ptag if the text has no spaces and is very long? Here is an example: ...
13
by: Boris | last post by:
Can anyone tell me if Opera 9.5 is behaving correctly when wrapping the word C++, eg: C+ + Opera 9.2 didn't wrap C++. For those who use Opera 9.5 there is a test case at...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.