PDA

View Full Version : Why does it do this?



Christopher
March 17th, 2002, 14:56
Look at the attatched picture...
(Sorry, it is hard on the eyes but I needed to make it small so I could upload it)

Why does the table cell on the right noe extend the rest of the page? I was trying width=100% and everything! Why?

Christopher
March 17th, 2002, 14:57
Oh, and the source code is here...
Atatchment

Christopher
March 17th, 2002, 15:11
AND, in the screen shot, where the <----?----> thing is, that isn't part of the actual page, I just added that with the graphics editor...

meow
March 17th, 2002, 16:02
Think it is because you have the whole thing contained in an outer table. The "Menu Table" and the "Page Table" are each contained in a TD in the outer table. Those TD's will try to share the row between them. You could try to set the menu's containing TD to the same width as the menu table itself. Then the page table's containing TD should expand once filled with something. Worth a shot anyway. ;)

You have:
<td valign="top">

<!-- Menu Table Design -->
<table cellspacing="0" cellpadding="0" width="150">

Try changing to:
<td valign="top" width="150">

<!-- Menu Table Design -->
<table cellspacing="0" cellpadding="0" width="100%">
(and fill this one up with some text)

Christopher
March 17th, 2002, 16:27
It does look fine when it is filled up with something, like text, but I just wanted it to always stay all the way accross incase I don't have enough content to make it expand all of the way accross, or if a person has a large reolution, I will also have a problem...

Well, I'm going to work on it...


Thanx meow!


Edit: What the way to say "the rest"? Like width="theRest"? I know when your talking about frames it's something like "*", but I forget...

meow
March 17th, 2002, 16:46
You mean that old trick to set one cell to 100% and the rest in pixels? I tried, but it didn't work and I'm to lazy too check the whole code. Maybe that one needed at least 3 columns. I don't remember. I'm not sure how that one would behave in the newest browsers either since it sort of a hack.

Dunnu, is it important to you that the menu table is a fixed with? Otherwise you could always use something like

<td width="15%">
-MENU TABLE-
</td><td width="85%">
-PAGE TABLE-
</td>

Christopher
March 17th, 2002, 19:14
Yay! I fixed it!

All I did is just made separte tables for the logo and for the copyright thing, then just put the menu and the page tables within a nother table.

Im confused :confused2

LoL

meow
March 17th, 2002, 19:27
:rolleyes: :biggrin2:
Maybe the total math was wrong or something. :confused:

Big tables are evil anyway. :D

Christopher
March 17th, 2002, 19:34
Lookin at the old source code, that thing is crazy! I had like 4 tables in eachother, lol...

It's a bit clearer now...

Thanx for you help meow!

meow
March 17th, 2002, 19:36
Sounds like you solved it yourself to me. :p

Christopher
March 17th, 2002, 20:02
I just ran into another problem, but now I fixed that too!

I justed use style like this on the menu TD:

style="width : 150px;"

And then on the page TD i put

width="100%"



I hope it works in netscape
:confused2