Table Width Problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm still having trouble controlling the screen width of my tables.

If you look at http://www.rjma.com/rfps/ed19.htm you'll see that I have three tables, each with table width's set at 70 percent. The middle (largest table) spans out to the right well beyond the beginning and ending tables

Why

Bob
 
You have mixed fixed width <td width="151" elements
and percentage <td width="68%" elements in the same table.
Example;
<td width="151" valign="top" align="center" bgcolor="#008000" height="64">
<b><font face="Arial" size="2" color="#FFFFFF">Toyota</font></b></td>
<td width="68%" valign="top" align="justify" height="64"><b>

You need to make them all one or the other.

--
95isalive
This site is best viewed..................
...............................with a computer

Robert Miller said:
I'm still having trouble controlling the screen width of my tables.

If you look at http://www.rjma.com/rfps/ed19.htm you'll see that I have
three tables, each with table width's set at 70 percent. The middle
(largest table) spans out to the right well beyond the beginning and ending
tables.
 
You need to redo all your table and cell widths so they are the same. Just
looking at some of the code I see table cells set to 95 pixels, 151 pixels
under that cell, the table is at 86 pixels then next one is set to 68% and
so on.

--
David Berry - MCP
Microsoft MVP - FrontPage
FrontPage Support: http://www.net-sites.com/sitebuilder/
-----------------------------------

-----------------------------------
Robert Miller said:
I'm still having trouble controlling the screen width of my tables.

If you look at http://www.rjma.com/rfps/ed19.htm you'll see that I have
three tables, each with table width's set at 70 percent. The middle
(largest table) spans out to the right well beyond the beginning and ending
tables.
 
message
| I'm still having trouble controlling the screen width of my
tables.
|
| If you look at http://www.rjma.com/rfps/ed19.htm you'll see
that I have three tables, each with table width's set at 70
percent. The middle (largest table) spans out to the right well
beyond the beginning and ending tables.
|
| Why?
|
| Bob

First, you should declare a DOCTYPE and eliminate the markup
errors.

The second table's width is set to 86% and the three <td>/s in
the first <tr> add up to more than 100% (the first no width is
set, second is set to 100% and the third is set to 95px).

hth
 
Uh oh.
None of my webs have a DOCTYPE declared.
does that mean they'll stop working??
 
A DOCTYPE will not fix your tables.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
This table WAS working perfectly. Something happened to cause the width problem. Is there anyway to find the offending code?

Bob
 
Select all cells, then remove the width, then select each column and set the
values in %. The total must equal 100% of the table width.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Robert Miller said:
This table WAS working perfectly. Something happened to cause the width
problem. Is there anyway to find the offending code?
 
And you would switch to HTML View to add it to the top line of your page.
Ex:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 
No, I believe something else wrong is going on.

I removed all the cell widths. I then set the table to 70%

Next, I set each of the columns to 10%; 50%; and 10% respectively

No change in the table resulted! (Recall, I'm trying to make all three stacked tables the same width.

Go back and look at http://www.rjma.com/rfps/ed19.ht

Still perplexed

Bob
 
Check your code again, switch to HTML View and do a search for Width.
There's on cell set like this:

width="70%""843"

Also, your images are pretty wide and they could be pushing the table cells
over.

--
David Berry - MCP
Microsoft MVP - FrontPage
FrontPage Support: http://www.net-sites.com/sitebuilder/
-----------------------------------

-----------------------------------
Robert Miller said:
No, I believe something else wrong is going on.

I removed all the cell widths. I then set the table to 70%.

Next, I set each of the columns to 10%; 50%; and 10% respectively.

No change in the table resulted! (Recall, I'm trying to make all three
stacked tables the same width.)
 
In fact, if you look at a similar table I created (that is formatted the way I want it), I've mixed various cell width properties in the same second table e.g., % and pixels!

This properly working table can be found at http://www.rjma.com/rfps/health19.htm

As I mentioned before, seems to me that something else is wrong.

Bob
 
Your very first table starts

<table border="0" width="900" id="table5" bgcolor="#FFFFFF" cellspacing="0"
cellpadding="10">Bob Lehmann"Robert Miller"
In fact, if you look at a similar table I created (that is formatted the
way I want it), I've mixed various cell width properties in the same second
table e.g., % and pixels!
 
Thanks, all, for your help. I finally fixed my table problem by setting all table and cell widths to pixels rather than percents and combinations of percents and pixels.

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top