473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HTML question (yeah yeah I know..)

I can't find an HTML newsgroup that's at all active! Thought I'd ask here
anyway...

I've noticed that a table cell width is ignored if the content contains
words that (themselves) are wider than the specified width. The table just
grows width-wise.

Is there any way to stop this?

I'm trying to get my tables to fit 640px wide, but the content frequently
makes them bleed off the page.

TIA,
John
Nov 16 '05 #1
6 1485
Hi

If I understand correctly you are setting the cell width, try setting the
table width as below instead

<table width="640">
<tr>
<td></td>
<tr>
<table>

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html

"John Wood" <sp**@isannoying.com> wrote in message
news:%N**********************@news4.srv.hcvlny.cv. net...
I can't find an HTML newsgroup that's at all active! Thought I'd ask here
anyway...

I've noticed that a table cell width is ignored if the content contains
words that (themselves) are wider than the specified width. The table just
grows width-wise.

Is there any way to stop this?

I'm trying to get my tables to fit 640px wide, but the content frequently
makes them bleed off the page.

TIA,
John

Nov 16 '05 #2
"John Wood" <sp**@isannoying.com> wrote:
I can't find an HTML newsgroup that's at
all active!


This might be useful next time:
comp.infosystems.www.authoring.html

P.
Nov 16 '05 #3
Make that

<table width="640">
<tr>
<td></td>
</tr>
</table>
"Mike Kitchen" <mi**@publicjoe.f9.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi

If I understand correctly you are setting the cell width, try setting the
table width as below instead

<table width="640">
<tr>
<td></td>
<tr>
<table>

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html

"John Wood" <sp**@isannoying.com> wrote in message
news:%N**********************@news4.srv.hcvlny.cv. net...
I can't find an HTML newsgroup that's at all active! Thought I'd ask here anyway...

I've noticed that a table cell width is ignored if the content contains
words that (themselves) are wider than the specified width. The table just grows width-wise.

Is there any way to stop this?

I'm trying to get my tables to fit 640px wide, but the content frequently makes them bleed off the page.

TIA,
John


Nov 16 '05 #4
Well I do that, but if one of the cells contains a word that it cannot break
up (eg. let's say a 30 digit number) then the cell resizes beyond its
specified width. Can't seem to figure out how to stop it...

eg.
<table width=100 border=1>
<tr>
<td>this is 100 pixels<td>
</tr>
</table>

<table width=100 border=1>
<tr>
<td>this is not !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<td>
</tr>
</table>

"Mike Kitchen" <mi**@publicjoe.f9.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi

If I understand correctly you are setting the cell width, try setting the
table width as below instead

<table width="640">
<tr>
<td></td>
<tr>
<table>

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html

"John Wood" <sp**@isannoying.com> wrote in message
news:%N**********************@news4.srv.hcvlny.cv. net...
I can't find an HTML newsgroup that's at all active! Thought I'd ask here anyway...

I've noticed that a table cell width is ignored if the content contains
words that (themselves) are wider than the specified width. The table just grows width-wise.

Is there any way to stop this?

I'm trying to get my tables to fit 640px wide, but the content frequently makes them bleed off the page.

TIA,
John


Nov 16 '05 #5
Hi John,

AFAIK that is not possible, you could try using javascript to format the
cell after the page is loaded and rended, other than that I cannot think of
a better idea.
Cheers,
pd:
if you find the answer post it back here

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"John Wood" <sp**@isannoying.com> wrote in message
news:%N**********************@news4.srv.hcvlny.cv. net...
I can't find an HTML newsgroup that's at all active! Thought I'd ask here
anyway...

I've noticed that a table cell width is ignored if the content contains
words that (themselves) are wider than the specified width. The table just
grows width-wise.

Is there any way to stop this?

I'm trying to get my tables to fit 640px wide, but the content frequently
makes them bleed off the page.

TIA,
John

Nov 16 '05 #6
Aha, figured it out.
Seems that you can use the DIV tag with overflow set to hidden to do it...
Cool huh?

<table width=100 border=1>
<tr>
<td><div style="width: 100px; overflow: hidden"> this is not
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><td>
</tr>
</table>

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:OF*************@TK2MSFTNGP09.phx.gbl...
Hi John,

AFAIK that is not possible, you could try using javascript to format the
cell after the page is loaded and rended, other than that I cannot think of a better idea.
Cheers,
pd:
if you find the answer post it back here

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"John Wood" <sp**@isannoying.com> wrote in message
news:%N**********************@news4.srv.hcvlny.cv. net...
I can't find an HTML newsgroup that's at all active! Thought I'd ask here anyway...

I've noticed that a table cell width is ignored if the content contains
words that (themselves) are wider than the specified width. The table just grows width-wise.

Is there any way to stop this?

I'm trying to get my tables to fit 640px wide, but the content frequently makes them bleed off the page.

TIA,
John


Nov 16 '05 #7

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

Similar topics

18
by: David Johnson | last post by:
I am looking for a way to combine the functionality of "include" and "here documents" so that an included html file containing $variables is expanded and handled (normally printed to stdout). It...
8
by: Moosebumps | last post by:
Is there a standard solution for writing HTML web pages with Python? I don't know that much about web programming, but basically I want to generate some internal reports on a web page. It...
71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
6
by: Michael C | last post by:
Anyone know of a good HTML Rendering control? I need a control that will render and display HTML in a Windows form. It doesn't need to pull down HTML pages from the Web - I'll feed it all the...
23
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was...
3
by: Ori | last post by:
Hi , I'm working with C#.NET and I'm looking for the following. I have a web page content and I want to pull all the text which appear in the page without all the HTML tags. I know that there...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
7
by: Yeah | last post by:
Ever since I upgraded my Windows display to 120 DPI (kind of a necessary change), fonts have been clearer and graphics have been crisper. However, the 25% automatic increase in the text size on my...
11
by: saurabh | last post by:
Can anybody tell me how to change the value of an html control from the c#.... eg i hv one asp.net radio button control and one html hidden variable... so on page load in case the radio button is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
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,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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 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.