473,763 Members | 7,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table width is ignored if cell contains query string

Hello all,
I have encountered an unexpected problem where if I render a table (in IE or
Opera) and there are cells that contains URLs with long query strings, even
though I specify the table element with the width attribute set as 90%, when
I render the document, it spans way off the right side of the screen. For
some reason, having a long query string in the cell does some funcky stuff.
Does anyone know how to *force* the table to only span 90% across the
screen?

--Rich

Source below...

<html>
<head>
<title>Spider Status</title>
<style type="text/css">

table { border-style: solid;
border-width: thin;
border-color: white;
}

td { border-style: solid;
border-width: 1px ;
border-color: white;
}

</style>
</head>
<body bgcolor="darkbl ue" text="yellow">
<p>
<H1 align="left">Sp ider Status Page</H1><img src="spider_ani mation.gif"/>
<table border=1 width="90%">
<TR>
<TH>Record ID</TH>
<TH>Real World URL</TH>
<TH>Content Type</TH>
<TH>Base URL</TH>
<TH>Local filename</TH>
<TH>Test Results (Pass/Fail)</TH>
<TH>Comments</TH>
</TR>

<TR>
<TD>30</TD>
<TD
style='width:10 0px'>http://blah.match.blah .perl.com/qsearch/qsearchdl.aspx? GenderCode=1&Th emRelationship= 2&M_Smoke=03&M_ LAGE_A0=21&M_UA GE_A1=40&photos only=1&Tracking ID=523324&banne rid=553216&CL=1 </TD>
<TD>text/html</TD>
<TD>http://peopleconnectio n.aol.com/love/</TD>
<TD>file30.html </TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD>39</TD>
<TD
style='width:10 0px'>http://horses.match.lo ve.cnn.com/search/search.aspx?Tra ckingID=523324& BannerID=553219 </TD>
<TD>text/html</TD>
<TD>http://peopleconnectio n.aol.com/love/</TD>
<TD>file39.html </TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD>40</TD>
<TD
style='width:10 0px'>http://free.aol.com/tryaolfree/index.adp?promo =547681&service =aolhsb&service =aolhsb</TD>
<TD>text/html</TD>
<TD>http://peopleconnectio n.aol.com/love/</TD>
<TD>file40.html </TD>
<TD></TD>
<TD></TD>
</TR>
</Table>

</p>
</body>
</html>
Aug 24 '05 #1
3 2829
RBalbat wrote:
Hello all,
I have encountered an unexpected problem where if I render a table (in IE or
Opera) and there are cells that contains URLs with long query strings, even
though I specify the table element with the width attribute set as 90%, when
I render the document, it spans way off the right side of the screen. For
some reason, having a long query string in the cell does some funcky stuff.
Does anyone know how to *force* the table to only span 90% across the
screen?

Theoretically the CSS max-width attribute should take care of it, but IE
doesn't support it, and I don't know how other browsers deal with it
when unbroken content is just too long. Which leads to my question: what
do you expect the browser to do when an unbroken string of characters is
too long for a cell of restricted width?
Aug 24 '05 #2

"Harlan Messinger" <hm************ *******@comcast .net> wrote in message
news:3n******** *****@individua l.net...
RBalbat wrote:
Hello all,
I have encountered an unexpected problem where if I render a table (in IE
or Opera) and there are cells that contains URLs with long query strings,
even though I specify the table element with the width attribute set as
90%, when I render the document, it spans way off the right side of the
screen. For some reason, having a long query string in the cell does some
funcky stuff. Does anyone know how to *force* the table to only span 90%
across the screen?

Theoretically the CSS max-width attribute should take care of it, but IE
doesn't support it, and I don't know how other browsers deal with it when
unbroken content is just too long. Which leads to my question: what do you
expect the browser to do when an unbroken string of characters is too long
for a cell of restricted width?

Thanks for the reply Harlan. Even though I am restricting the width, I would
expect the content to simply wrap to the next line within the same cell.
Aug 24 '05 #3
"RBalbat" <RB*****@yahoo. com> wrote:
Even though I am restricting the width, I would
expect the content to simply wrap to the next line within the same cell.


That would be bad, since breaking a URL at an arbitrary position is wrong.

Usually the problem you describe vanishes in a puff of logic, if you ask
yourself "what are URLs for, in HTML authoring?"(Of course you should also
ask yourself "what made me think I wish to set a width in _pixels_?")

Right, put them into href attributes, and use normal text for link text.

Only in the rare cases where you write _about_ URLs do you need to consider
their line breaking issues, which are actually very complicated (and I mean
very complicated), but the practical choice is simple: insert <wbr> at any
permissible break point, and enclose the URL between suitable delimiters
like quotation marks. If you think this is too practical, read
http://www.cs.tut.fi/~jkorpela/html/nobr.html#suggest

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Aug 24 '05 #4

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

Similar topics

2
7123
by: LC's No-Spam Newsreading account | last post by:
I have a form arranged in a table (you can see an example in the page http://cosmos.mi.iasf.cnr.it/~lssadmin/Website/LSS/Help/query.html) The table is on three columns but has a structure like this. The part I'm concerned with is the cell FFFFF which contains a multiple <SELECT> list of <OPTION>s. As you can see the first two rows span more than one column (if this has any importance). What I want is to constrain FFFFF not to exceed a...
5
30217
by: Ivo | last post by:
Consider a table with a number of rows, each containing a short text (label) on the left and an input control on the right. Some inputs are of type text and others of type checkbox. I would like the cells with the checkboxes to be as narrow as possible (square) but in this table the "width=10" bit seems to get ignored: <table border="1"> <tr> <td>some text</td> <td colspan="2"><input type="text"></td>
4
19787
by: Philipp Lenssen | last post by:
I have a site that runs in strict mode in IE6, and IE is making <td>s for simple two-digit numbers really wide. So I want to restrict it (and right-align it) by using <td class="number"> and .number { width: 10px; }. In Mozilla this works, but IE ignores this. Next to adding an invisible "0" precding one-digit numbers, what can I do to solve this?
4
6153
by: Alex Meier | last post by:
I have the following problem: I need a simple, tabular layout in a webshop. - left column: navigation column with approx. 170px width - right column: content area the goal: the left column should contain a few "boxes" (these are HTML- tables) which should be all of the same width. So, I attributed the left column with 'width="170"' and assigned the attribute 'width="100%"' to all contained <table>s. This should
1
3551
by: Thanks | last post by:
I have a routine that is called on Page_Init. It retrieves folder records from a database which I display as Link Buttons in a table cell. I set the table cell's bgcolor to a default color (say black for example). I am dynamically creating the LinkButton controls and adding them into the table cell and I've also hooked up an event handler for each LinkButton's Click event. This all works fine. Now in the Link Button's Click event...
6
10001
by: anirban.anirbanju | last post by:
hi there, i've some serious problem to add rows dynamically in a table. my table contains 5 cell. | check | from_value | to_value | color_text | color_value | --------------------------------------------------------------------------------- | | | | | | | | | | |
2
3819
by: Jukka K. Korpela | last post by:
Sub titulo "Re: DIV borders different in IE7 when in td" scripsit Ben C: This seems to be the heart of the matter, and I'm trying to get a real discussion started, by moving the discussion to the right group (c.i.w.a.stylesheets) and changing the Subject line. It seems to me that IE 7, specifically in "standards mode" (!), misbehaves when a table cell has a declared width but the actual width
3
1626
by: chris f | last post by:
In my table (ASP.NET 2) that is dynamically generated I have a cell that initially will only display N rows of text and hide the rest. (This is so that the rows have a small height and I can display more rows on a page.) When the user clicks on the cell (or maybe hovers the mouse over it) then I want the cell to expand to display all of the rows. Can someone help me out as to how I implement it? I've been told to use expanding DIVs but I...
5
4955
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums there are, it crashes. There are currently 6 columns, and I only want 4. How do I remove the last two (discount and date)? Here is a link: http://www.jaredmoore.com/tablesorter/docs/salestable.html Here is some jquery js that I think...
0
9386
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,...
0
9997
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8821
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6642
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();...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
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
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.