Re: how to prevent unnecessary table resizing



With neither quill nor qualm, Dominik Jain quothed:

> > What do you want it to do, break after the first soft line break? Is
> > the cell width fixed?
>
> Of course not. I want cell width to be automatic.
> What I want to avoid is the unnecessary spacing that results from the
> insertion of soft line breaks. (see second table)

Well, if I got this correctly now, the best way I can think of is to use
a regular expression to convert the soft l-bs in the second-table text
to spaces. This can be done with javascript or server-side scripting
like PHP.

A javascript example of converting all whitespace to spaces is:

var stt="second table text";
stt=stt.replace(/\W/," ");

--
Neredbojias
Contrary to popular belief, it is believable.
.



Relevant Pages

  • Re: on text size...
    ... > Neredbojias wrote: ... >> With neither quill nor qualm, ... >>, if you're capable at javascript, you ...
    (alt.html)
  • Re: Can anyone help me?
    ... javascript make little triggers on user actions like ... Java is used to make applets. ... >> In the second column I have merged all six cells into one cell and there ...
    (comp.lang.java)
  • Re: Excel <> HTML Web page - How ?
    ... What is the requirement to use Javascript? ... tex input box to a cell in Excel file ... >> slide bar the value in an cell on Excel worksheet changes. ...
    (microsoft.public.excel.programming)
  • Re: CSS to javascript - CSS events are too slow.
    ... the table is editable through the addition of a javascript ... that adds a textbox to the cell that has the focus. ... is why I tried to convert the CSS to an event-driven javascript. ... divs, set it all up with table-layout:fixed and allow the content to ...
    (comp.lang.javascript)
  • innertext, javascript, datagrid, database update
    ... when a user presses a button, or edits a certain field in a datagrid, another ... cell in the datagrid is filled with a value. ... field/cell that is filled by the javascript appears to be blank in my update ... My java script code that populates the desired cell; ...
    (microsoft.public.dotnet.framework.aspnet)

Loading