Table Problem

J

JCO

Okay, I've fixed this once but now it is acting up again. I have a simple
table that makes up the top header on my website. I want the entire table
width to be at 95%, therefore; it resizes automatically with a slight
boarder on the right side. The table consists of 3-cells. I want all of
the resizing to take place from the center cell. I want the 2-outside cells
to have a fixed width no matter what size the browser is at.

There must be a correct order to accomplish this. It seems that outside
cells want to resize along with the middle. I've selected the cell and put
a fix width (pixels). It's not accepting it.

Any help?
 
T

Tom Pepper Willett

By it's default nature, it will expand and contract as it is doing.
Mixing fixed pixels and % isn't going to work. Tables don't like it and
neither do some browsers.
--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
| Okay, I've fixed this once but now it is acting up again. I have a simple
| table that makes up the top header on my website. I want the entire table
| width to be at 95%, therefore; it resizes automatically with a slight
| boarder on the right side. The table consists of 3-cells. I want all of
| the resizing to take place from the center cell. I want the 2-outside
cells
| to have a fixed width no matter what size the browser is at.
|
| There must be a correct order to accomplish this. It seems that outside
| cells want to resize along with the middle. I've selected the cell and
put
| a fix width (pixels). It's not accepting it.
|
| Any help?
|
|
 
C

Chet

| By it's default nature, it will expand and contract as it is
doing.
| Mixing fixed pixels and % isn't going to work. Tables don't
like it and
| neither do some browsers.
| --
| -----
| Tom Pepper Willett
| Microsoft MVP - FrontPage
|
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| http://msdn.microsoft.com/office/understanding/frontpage/

Tom,

Question about your reply above. I know that it's improper to mix
px and % in tables, BUT... what about floating (nesting) a fixed
px table within a cell that's set to percentages? Basically, to
have a fixed width left or right column?

Thanks in advance.
 
T

Tom Pepper Willett

Why would you need to float it, rather than just put the fixed width table
in the cell? Or, a fixed size (width) transparent gif (which might be
better, since the fixed width table would still need something in it to fix
the size)?
--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
|
| | | By it's default nature, it will expand and contract as it is
| doing.
| | Mixing fixed pixels and % isn't going to work. Tables don't
| like it and
| | neither do some browsers.
| | --
| | -----
| | Tom Pepper Willett
| | Microsoft MVP - FrontPage
| |
| http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| | http://msdn.microsoft.com/office/understanding/frontpage/
|
| Tom,
|
| Question about your reply above. I know that it's improper to mix
| px and % in tables, BUT... what about floating (nesting) a fixed
| px table within a cell that's set to percentages? Basically, to
| have a fixed width left or right column?
|
| Thanks in advance.
| --
| Chet
| (e-mail address removed) (remove NO.....SPAM)
|
|
 
C

Chet

| Why would you need to float it, rather than just put the fixed
width table
| in the cell? Or, a fixed size (width) transparent gif (which
might be
| better, since the fixed width table would still need something
in it to fix
| the size)?
| --
| -----
| Tom Pepper Willett
| Microsoft MVP - FrontPage
|
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| http://msdn.microsoft.com/office/understanding/frontpage/

It's really somewhat of a hypothetical question, but something
like what MS has on the two pages under you sig above, or on the
sample page I've done with css and divs here

http://webpages.charter.net/rwtest/samples/003/

The question was asked of me by someone working on a page that
will have tabular data from a db in the main body, and he wants
the page to resize, but the nav column to stay fixed. Even on my
sample I've used a fixed pixel width for the columns but
percentages for the container div. My sample validates fine as
strict 4.01 but will the mixing of px and % still cause problems
for some browsers?

The reason I've asked you is that I've lurked in this ng (and
several others) for years and I highly respect your advice.

Thanks,
 
J

JCO

I'm understand your response although I don't understand the ongoing
conversation below. At any rate, cant I get into the code and add some sort
of "noresize" in the areas that I wish to remain fixed?

If so, how would that code look?
 
T

Tom Pepper Willett

What ongoing conversation below?
--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
| I'm understand your response although I don't understand the ongoing
| conversation below. At any rate, cant I get into the code and add some
sort
| of "noresize" in the areas that I wish to remain fixed?
|
| If so, how would that code look?
|
| | > By it's default nature, it will expand and contract as it is doing.
| > Mixing fixed pixels and % isn't going to work. Tables don't like it and
| > neither do some browsers.
| > --
| > -----
| > Tom Pepper Willett
| > Microsoft MVP - FrontPage
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > ----
| > | > | Okay, I've fixed this once but now it is acting up again. I have a
| simple
| > | table that makes up the top header on my website. I want the entire
| table
| > | width to be at 95%, therefore; it resizes automatically with a slight
| > | boarder on the right side. The table consists of 3-cells. I want
all
| of
| > | the resizing to take place from the center cell. I want the 2-outside
| > cells
| > | to have a fixed width no matter what size the browser is at.
| > |
| > | There must be a correct order to accomplish this. It seems that
outside
| > | cells want to resize along with the middle. I've selected the cell
and
| > put
| > | a fix width (pixels). It's not accepting it.
| > |
| > | Any help?
| > |
| > |
| >
| >
|
|
 
T

Thomas A. Rowe

No such thing.

However try something like:

Overall table 94% width
Left = Left Align content, 20% width
Center = Center content, 60% width
Right = Right Align content, 20% width

--

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

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

Steve Easton

Try this.
Make a 1 row 1 column table set at 95% width.
Then make another 1 row 3 column table inside of the first one.
Switch to html view and edit the widths.
Set the left and right one to fixed widths and set the center one to 100%

It will look like this.

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%">
<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100">123456789</td>
<td width="100%">&nbsp;</td>
<td width="100">123456789</td>
</tr>
</table>
</td>
</tr>
</table>

the 123456789 is just some text I typed in to check it.
Copy and paste it into a new page and play with it.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
J

JCO

I just meant that I understand your original reply, that it is not standard
to mix fix px and %.
I did not understand what Chet was asking you (about floating; nesting).
 

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


Top