say i have the following table:
<table width="500">
<tr>
<td width="250">thi s is the text im concerned with</td>
<td></td>
</tr>
</table>
i need the width of the columns to STAY at 250 and wrap text that is longer
instead of blowing apart the whole table.
the tag "word-wrap: break-word;" works, but is only supported in IE. what
can i do to fix this? 5 6734
momo wrote:
say i have the following table:
<table width="500">
<tr>
<td width="250">thi s is the text im concerned with</td>
<td></td>
</tr>
</table>
Then you should move to doing layout in CSS. Or at least stop setting
pixel-valued widths. Do you really want to break your page whenever someone
views it in a window that is, say, 450 pixels wide?
Besides, you didn't give a _real_ example, did you? The phenomenon that you
describe cannot be seen by testing your example.
i need the width of the columns to STAY at 250
No you don't. Analyze why you want that, and you'll find your _real_
problem.
the tag "word-wrap: break-word;" works,
For some odd values of "works", and it's not a tag at all. When it "works",
it brutally breaks words with no indication like hyphens, so it seriously
distorts that.
what can i do to fix this?
Redesigning the site is the fastest way, and realistically the only way.
--
Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/
"momo" <js@js.comwrote :
>say i have the following table:
<table width="500">
<tr>
<td width="250">thi s is the text im concerned with</td>
<td></td>
</tr> </table>
i need the width of the columns to STAY at 250 and wrap text that is longer instead of blowing apart the whole table.
The table cell width will stay at 250px provided that the cell content
can be wrapped within that width. The cell content (and eventually the
table itself) will stretch if the cell content cannot be wrapped within
the specified width.
>the tag "word-wrap: break-word;" works, but is only supported in IE. what can i do to fix this?
Font zooming will eventually cause the table to stretch, but it would
take a fair amount of zooming given the provided "content" and cell
width.
It would have been much better if you had provided an url to what you
are actually trying to do instead of posting bogus content and markup.
Btw, this would not be an issue if you had used tables for their
intended purpose instead of using them for layout.
--
Spartanicus
here is an example of what i need to do. i would greatly appreciate it if
someone has a fix http://www.sixhouse.net/wrap.html
"Spartanicu s" <in*****@invali d.invalidwrote in message
news:rc******** *************** *********@4ax.c om...
"momo" <js@js.comwrote :
>>say i have the following table:
<table width="500"> <tr> <td width="250">thi s is the text im concerned with</td> <td></td> </tr> </table>
i need the width of the columns to STAY at 250 and wrap text that is longer instead of blowing apart the whole table.
The table cell width will stay at 250px provided that the cell content
can be wrapped within that width. The cell content (and eventually the
table itself) will stretch if the cell content cannot be wrapped within
the specified width.
>>the tag "word-wrap: break-word;" works, but is only supported in IE. what can i do to fix this?
Font zooming will eventually cause the table to stretch, but it would
take a fair amount of zooming given the provided "content" and cell
width.
It would have been much better if you had provided an url to what you
are actually trying to do instead of posting bogus content and markup.
Btw, this would not be an issue if you had used tables for their
intended purpose instead of using them for layout.
--
Spartanicus
Please do not top post, corrected this once.
"momo" <js@js.comwrote :
>It would have been much better if you had provided an url to what you are actually trying to do instead of posting bogus content and markup.
>here is an example of what i need to do. i would greatly appreciate it if someone has a fix
http://www.sixhouse.net/wrap.html
More bogus markup and content, I'm not willing to continue a discussion
on that basis.
--
Spartanicus
Scripsit momo:
here is an example of what i need to do. i would greatly appreciate
it if someone has a fix
http://www.sixhouse.net/wrap.html
Try reading comprehensively some of the answers you got, instead of randomly
quoting comprehensively one of them.
You are not helping us to help you when you don't describe the real problem.
Your content is surely not "this_is_the_te xt_that_i_need_ to_wrap", and if
breaking at random points is a solution, as you seem to think, then you have
an odd problem.
What you need to do is to get rid of the rigid layout and to set up some
processing of the data you get from the database, whether it be truncation
or insertion of spaces or insertion of <wbrtags.
--
Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: yawnmoth |
last post by:
word wrapping normally treats some spaces as line feeds, if there
hasn't been a line feed for quite a while. so while a string with
eighty consecutive a's might not word wrap, a space placed squarely in
the middle of that string will sorta word wrap. so why doesn't it
seem to work with !'s? here's a page that demonstrates how !'s don't
seem to word wrap:
http://www.geocities.com/terra1024/wordwrap.htm
here's a page that shows how...
|
by: Douglas G |
last post by:
I've tried various ideas on this problem, but I don't see word wrapping.
Can you point out what is wrong? It's a K&R exercise, and I'm still new to
programming. Other pointers would be helpful too.
#include "header.h"
/* does the wordwrapping */
void fold(char buffer, int len)
{
|
by: Mr TVTL |
last post by:
Hi there,
I've created a series of layouts designed to be optimized for search
engines, and yet also standards-compliant.
The problem isn't in the layouts themselves, but in the display of the
code.
I use the <pre> tags to ensure that the code, as well as all of the tag
formatting, gets transported.
|
by: Joel Byrd |
last post by:
I've got a div whose width is specified as a percentage so that if you
shrink the browser window, the div shrinks, and the text inside the div
wraps around to accommadate this. The problem is: if I put a really
long word (like a web address) in the div, then it props the rest of
the text open to the width of the word, and the text can't wrap past
that width; but if I shrink the browser window, the div also shrinks
and so the net result...
|
by: Lorenzo Thurman |
last post by:
I have a table cell that I want to wrap text inside of. I've tried both
hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap
just fine. Does anyone know how I can fix this?
| |
by: gazza67 |
last post by:
Hi,
I want to do something that I thought would be simple but i cant seem
to work it out, perhaps someone out there could help me.
I want to browse for a file (it will be a word document), save the file
name to a string and then at some later stage open that file with word.
The operating system will be windows 2000 (dont know if that makes a
difference or not).
|
by: winston.heng |
last post by:
Hi,
Thanks for reading this posting. I have been cracking my head on
solving the infinite loop
when i call the following section code. Any help or advise is greatly
appreciated =D
Thanks in advance.
Cheers!
|
by: Eric Layman |
last post by:
Hi,
I have fields from textareas.
With a click of a button, php is able to grab these fields and by using
header(), convert the output to Ms Word doc.
But the outcome of the word doc doesn't wrap the text in textarea.
the result is one very veyr long string of text which stretch MS word all
|
by: vedika |
last post by:
Hello,
I have problem with word-wrapping. When width is given in pixel style="word-wrap:word-break" works well but when it is given in percentage then it is not working.
<table border="1" width="20%">
<tr>
<td width="10%" style="word-wrap:break-word">
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
</td>
</tr>
</table>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |