Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] css attribute for <TD> width


  • From: javascript@xxxxxxxxxx (Dan Costea)
  • Subject: [Javascript] css attribute for <TD> width
  • Date: Thu, 21 Feb 2002 16:42:23 +0100

This is a multi-part message in MIME format.

------=_NextPart_000_014C_01C1BAF6.BC986670
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

    Hi,=20

I have a table like this:

<table border cellpadding=3D0 cellspacing=3D0>
 <tr>
  <td><div style=3D"width:120pt; word-wrap: break-word; background: =
red;"> asldkjf alsdk jfalsk asldas afja a</div></td>
  <td><div style=3D"width:60pt; word-wrap: break-word; background: =
red;"> asldkjf alsdk jfalsk aslsa as ddfja a</div></td>
  <td><div style=3D"width:19pt; word-wrap: break-word; background: =
red;"> asldkjf alsdk jfalskasdf asdf asldfja a</div></td>
  <td><div style=3D"width:150pt; word-wrap: break-word; background: =
red;"> asldkjf alsdk jfalsk aasdsldfja a</div></td>
  <td><div style=3D"width:220pt; word-wrap: break-word; background: =
red;"> asldkjf alsk asldfja a</div></td>
 </tr>
</table>

How can I set ALL columns (including the third) to be of the minimum =
width? (to not let empty space in the left)


Thanks, Dan.

------=_NextPart_000_014C_01C1BAF6.BC986670
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have&nbsp;a table like =
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;table border cellpadding=3D0=20
cellspacing=3D0&gt;<BR>&nbsp;&lt;tr&gt;<BR>&nbsp;&nbsp;&lt;td&gt;&lt;div =

style=3D"width:120pt; word-wrap: break-word; background: red;"&gt; =
asldkjf alsdk=20
jfalsk asldas afja =
a&lt;/div&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&lt;td&gt;&lt;div=20
style=3D"width:60pt; word-wrap: break-word; background: red;"&gt; =
asldkjf alsdk=20
jfalsk aslsa as ddfja =
a&lt;/div&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&lt;td&gt;&lt;div=20
style=3D"width:19pt; word-wrap: break-word; background: red;"&gt; =
asldkjf alsdk=20
jfalskasdf asdf asldfja=20
a&lt;/div&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&lt;td&gt;&lt;div =
style=3D"width:150pt;=20
word-wrap: break-word; background: red;"&gt; asldkjf alsdk jfalsk =
aasdsldfja=20
a&lt;/div&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&lt;td&gt;&lt;div =
style=3D"width:220pt;=20
word-wrap: break-word; background: red;"&gt; asldkjf alsk asldfja=20
a&lt;/div&gt;&lt;/td&gt;<BR>&nbsp;&lt;/tr&gt;<BR>&lt;/table&gt;<BR></FONT=
></DIV>
<DIV><FONT face=3DArial size=3D2>How can I set ALL columns (including =
the third) to=20
be of the minimum width? (to not let empty space in the =
left)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks, Dan.</DIV></FONT></BODY></HTML>

------=_NextPart_000_014C_01C1BAF6.BC986670--