473,545 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

formatting the third column

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 andfdandsfnakds nfaksnfdkajn
</div>
</td>
<td>
<div style="position :fixed; width:400px;">
Need to add some stuff here
</div>
</td>
</tr>
</table>
Jul 20 '05 #1
4 3233
Michael Hill <hi****@ram.lmt as.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 andfdandsfnakds nfaksnfdkajn
</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.
Jul 20 '05 #2
On Wed, 21 Jul 2004 19:58:22 -0400, Harlan Messinger
<hm************ *******@comcast .net> wrote:
Michael Hill <hi****@ram.lmt as.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/
Jul 20 '05 #3
Harlan,

Do you have any other suggestions other than limiting my content?

Mike

Harlan Messinger wrote:

Michael Hill <hi****@ram.lmt as.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 andfdandsfnakds nfaksnfdkajn
</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.

Jul 20 '05 #4

"Michael Hill" <hi****@ram.lmt as.lmco.com> wrote in message
news:40******** *******@ram.lmt as.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.lmt as.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 andfdandsfnakds nfaksnfdkajn </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.


Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5921
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 terminated by pressing ++ and then terminate the process. I searched the entire internet and found out that there could be two things wrong (both...
2
9066
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 a property called 'ToolTipText', but how do I format the text? Thanks, Soum
10
3019
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 number of rows. - Second column 25 %, no rowspan - Third column 25 %, no rowspan
4
2609
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 re-format the updated row fields. I have looked at gridView.rowUpdated method, but cannot figure out how....
4
8316
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 date column always shows the date and time while I just want the short date. I have tried applying a format string {0:d} but to no avail. I saw a...
2
3732
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 grid is filled with a column from a table that is varChar(500). I only want to display the first 50 character of that column. I want to be able to...
2
2202
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) should not. The three elements of the name, genus, species and author, are in individual fields. I can create the complete scientific name in...
4
1842
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 it's not, it doesn't do anything. How can I do this so that the formatting is based on the value of a non-visible column? If e.Row.RowType =...
8
3472
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 there will
0
7393
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...
0
7803
jinu1996
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...
0
7749
tracyyun
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...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5322
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4942
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...
0
3444
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...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
695
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.