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> 4 3243
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.
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/
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.
"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.
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 terminated by
pressing ++ and then terminate the process.
I searched the entire internet and found out that there could be two
things wrong (both of them are mentioned in the bug list on the access
|
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
|
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
|
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....
|
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 lot of posts regarding the
htmlencode property but I do not know how to turn that off for a...
| |
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 use the "Data Formatting Expression" in the
datagrid columns property page.
I could only find...
|
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
the report by concatenating the three fields, but then I cannot format
its parts separately. I've...
|
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 = DataControlRowType.DataRow Then
If e.Row.Cells(0).Text = "1" Then
e.Row.Font.Bold = True...
|
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
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |