I am having a problem formatting the third column. It should be 70px
wide, but it is extending well beyond 70.
The 2nd and 3rd column should be the same width. The content of the 3rd
column wraps like it is suppose to, but the width does not get fixed at
70px.
<table border="1">
<tr>
<td>
<div style="position:fixed; width:120px;">
2 - new stuff and other important stuff titles
</div>
</td>
<td>
<div style="position:fixed; width:70px; word-wrap:break-word;">
Mon 02/02/04
</div>
</td>
<td>
<div style="position:fixed; width:70px; word-wrap:break-word;">
Fri 12/31/04 kjhdfasdfadsfa andfdandsfnakdsnfaksnfdkajn
</div>
</td>
<td>
<div style="position:fixed; width:400px;">
Need to add some stuff here
</div>
</td>
</tr>
</table> 4 3224
Michael Hill <hi****@ram.lmtas.lmco.com> wrote: I am having a problem formatting the third column. It should be 70px wide, but it is extending well beyond 70.
The 2nd and 3rd column should be the same width. The content of the 3rd column wraps like it is suppose to, but the width does not get fixed at 70px.
If you set the width to 70px and then include content that's larger
than 70px, you're going to get a column that's wider than 70px. You
could try max-width, but IE6 doesn't support it. <table border="1"> <tr> <td> <div style="position:fixed; width:120px;"> 2 - new stuff and other important stuff titles </div> </td> <td> <div style="position:fixed; width:70px; word-wrap:break-word;"> Mon 02/02/04 </div> </td> <td> <div style="position:fixed; width:70px; word-wrap:break-word;"> Fri 12/31/04 kjhdfasdfadsfa andfdandsfnakdsnfaksnfdkajn </div> </td> <td> <div style="position:fixed; width:400px;"> Need to add some stuff here </div> </td> </tr> </table>
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
On Wed, 21 Jul 2004 19:58:22 -0400, Harlan Messinger
<hm*******************@comcast.net> wrote: Michael Hill <hi****@ram.lmtas.lmco.com> wrote:
I am having a problem formatting the third column. It should be 70px wide, but it is extending well beyond 70.
The 2nd and 3rd column should be the same width. The content of the 3rd column wraps like it is suppose to, but the width does not get fixed at 70px.
If you set the width to 70px and then include content that's larger than 70px, you're going to get a column that's wider than 70px. You could try max-width, but IE6 doesn't support it.
max-width doesn't apply to table elements anyway.
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
Harlan,
Do you have any other suggestions other than limiting my content?
Mike
Harlan Messinger wrote: Michael Hill <hi****@ram.lmtas.lmco.com> wrote:
I am having a problem formatting the third column. It should be 70px wide, but it is extending well beyond 70.
The 2nd and 3rd column should be the same width. The content of the 3rd column wraps like it is suppose to, but the width does not get fixed at 70px.
If you set the width to 70px and then include content that's larger than 70px, you're going to get a column that's wider than 70px. You could try max-width, but IE6 doesn't support it.
<table border="1"> <tr> <td> <div style="position:fixed; width:120px;"> 2 - new stuff and other important stuff titles </div> </td> <td> <div style="position:fixed; width:70px; word-wrap:break-word;"> Mon 02/02/04 </div> </td> <td> <div style="position:fixed; width:70px; word-wrap:break-word;"> Fri 12/31/04 kjhdfasdfadsfa andfdandsfnakdsnfaksnfdkajn </div> </td> <td> <div style="position:fixed; width:400px;"> Need to add some stuff here </div> </td> </tr> </table>
-- Harlan Messinger Remove the first dot from my e-mail address. Veuillez ôter le premier point de mon adresse de courriel.
"Michael Hill" <hi****@ram.lmtas.lmco.com> wrote in message
news:40***************@ram.lmtas.lmco.com... Harlan,
Do you have any other suggestions other than limiting my content?
Well, first of all, please don't top-post, or else when your correspondent
places portions of his response the related portions of your question, the
message will fall entirely out of order, as you can see has happened here.
Second, what do you think *should* happen? Splitting a word is a last resort
for a browser, which rightly gives readability precedence over layout. And
what if it was an image instead of a word?
I thought the CSS overflow property might help, but see http://gavelcade.com/tests/celloverflow.html. This version of the page uses
max-width: 70px; on every cell (instead of just width: 70px; which gives the
same result) but the width of the third column is *still* overridden by the
length of the long text. This is true, at least, in IE6, Firefox, and Opera.
In addition, IE makes room for the implied scrollbars in the case of
overflow: scroll.
So you may be out of luck.
Mike
Harlan Messinger wrote: Michael Hill <hi****@ram.lmtas.lmco.com> wrote:
I am having a problem formatting the third column. It should be 70px wide, but it is extending well beyond 70.
The 2nd and 3rd column should be the same width. The content of the 3rd column wraps like it is suppose to, but the width does not get fixed at 70px.
If you set the width to 70px and then include content that's larger than 70px, you're going to get a column that's wider than 70px. You could try max-width, but IE6 doesn't support it.
<table border="1"> <tr> <td> <div style="position:fixed; width:120px;"> 2 - new stuff and other important stuff
titles </div> </td> <td> <div style="position:fixed; width:70px;
word-wrap:break-word;"> Mon 02/02/04 </div> </td> <td> <div style="position:fixed; width:70px;
word-wrap:break-word;"> Fri 12/31/04 kjhdfasdfadsfa
andfdandsfnakdsnfaksnfdkajn </div> </td> <td> <div style="position:fixed; width:400px;"> Need to add some stuff here </div> </td> </tr> </table>
-- Harlan Messinger Remove the first dot from my e-mail address. Veuillez ôter le premier point de mon adresse de courriel.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jouke Langhout |
last post by:
Hello all!
For quite some time now, I've got the following problem:
Access won't close properly when a user closes the application. An
ACCESS process stays active and that process can only be...
|
by: soum |
last post by:
Hello,
How do you format a tooltip (eg. make the text bold/italic/underline)?
Specifically, I want to format the tooltip that shows up when you
mouseover the column header in a DataGridView. I get...
|
by: Perry van Kuppeveld |
last post by:
Hi,
I have a problem with formatting a table including text fields wich can
contain up to 255 chars.
I need a table with 3 columns:
- First column 50 % over the with a rowspan of the total...
|
by: Nalaka |
last post by:
Hi,
I have two questions about gridViews.
1. How can I intercept the row/column values at loading to change values?
2. After I update a row (using default update functionality), how can I...
|
by: Ken Wigle |
last post by:
All,
I would be very grateful for any help on this question. I have an
application in asp.net 2.0 where I dynamically create a datatable and then
bind that to a gridview. Unfortunately, the...
|
by: =?Utf-8?B?Uml0YUc=?= |
last post by:
Hello.
I could not find a Web discussion group (only saw Web Services) so am
posting my question here. I have a C# Web application that has a form with a
datagrid. One of the columns of the data...
|
by: penaloj |
last post by:
I am assembling a database of scientific names, e.g. Acer saccharum
Marshall, sugar maple. The first two elements (genus and species)
should be italicized in the report, the third element (author)...
|
by: Keith G Hicks |
last post by:
I have a gridview (asp.net 2.0) where I'm trying to format rows based on a
NON VISIBLE column. It doesn't seem to work. When column 0 below is visible,
the row is formatted as expected but when...
|
by: victor.herasme |
last post by:
Hi,
i am building a little script and i want to output a series of columns
more or less like this:
1 5 6
2 2 8
2 9 5
The matter is that i don't know in advance how many columns...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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...
| |