View Full Version : CSS; NO WORD WRAP
simpleSoft
January 18th, 2005, 10:29 PM
I have a table column whos width is 300px; this table is filled dynamically by some AS. At any rate the style of the table is determined by a CSS sheet. Is there a way I can stop a line from going to a new line when it is longer than 300 pixels long (and hide the overflow?)
Basically this is an order sheet; with itemized lines. When a line goes longer than three hundred pixels it wraps and then throws off the rest of the table. If you need an example of what I am talking about please let me know so I can show and explain further.
-Ryan
simpleSoft
January 19th, 2005, 06:26 PM
I am assuming this is a no?
senocular
January 19th, 2005, 06:50 PM
style="overflow:hidden;"
?
Kristopher
January 19th, 2005, 06:51 PM
This is all I can find for right now.
http://www.stylegala.com/features/css-reference/overflow.htm
RabBell
January 20th, 2005, 08:25 AM
not sure how you'd do it but did you think about a character count that would count the strings length and then cut the end of replacing it with'...', something like
250 Steel Wiring from the deepest parts of the Paris...
just an idea, hope it helps
simpleSoft
January 20th, 2005, 05:33 PM
That is a good idea RabBell. The only problem is this movie goes into a standalone application, which then the order sheet is set by CSS. Which means the size of the text can be set by the user dynamically. This technique will only work if I come up with somesort of calculation to find the number that will fit on each line.
I am trying to figure out a way to apply the 'overflow=hidden' because if you apply it to the table that it is a part of it still shows the lines like normal. But I am still working through it. Guys thanks for all the responses. :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.