Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Off-Topic-Archive > HTML Tables fun...
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
vovan is offline vovan
Emperor

Oct 2001
time: 06:31
  Old Post 05-10-2003 10:13
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
HTML Tables fun... Support Apolyton

Okay, a question for all of you web-designers out there.

Suppose I want to create an HTML page with a table that looks like this:

code:
+----------+------------------------------------+ | | | | | Cell 2 | | | | | Cell 1 +------------------------------------+ | | | | | Cell 3 | | | | +----------+------------------------------------+ | | | | Cell 4 | | | | | +----------+ | | | | | | | | | Cell 6 | | | | | Cell 5 | | | | | | | | | | | | | | | | | +----------+------------------------------------+


So, in this table, I want cells 1 and 4 to be of fixed dimensions; cells 2 and 3 of fixed height and width - according to the page width; cell 5 of fixed width, and height - according to the page height; and cell 6 to fill the rest of the page.

So, I give the cells I know the dimensions of the appropriate style attributes, and it seems everything should work out very well... Well, cells 1, 2, 3, and 6 do, indeed, behave as I want them to. However, in IE, cell 4 doesn't want to preserve its height! (It works just fine in Netscape and Opera, but knowing that a lot of people that will browse the resultant page will be users of IE, I have to accomodate them. ) What IE does is, it distributes the height evenly between cells 4 and 5 - both half of cell 6's height... It must have something to do with incorrect interpretation of the rowspan on cell 6, but that doesn't help me much.

Now, if I add a spacer image to cell 5 to make it higher that way, rather than through a style attribute, it works, but that limits how much information I can have in Cell 6... If I put more text there than the height of the spacer image, the problem kicks in again, and IE distributes the left over space evenly between cells 4 and 5...

Sooo, anyone know how to fix that and make cell 4 a fixed height? Help would be greatly appreciated.

Zero is offline Zero
King
Bouncing back and forth
Sep 2002
time: 00:31
  Old Post 05-10-2003 10:22
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Enter the AD-FREE zone

declare the size. WIDTH= or height=

Or just use Dreamweaver to take care of everything for u

vovan is offline vovan
Emperor

Oct 2001
time: 06:31
  Old Post 05-10-2003 10:28
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Zero
declare the size. WIDTH= or height=


I'm not that ignorant.

Sorry if my original post didn't make that clear, but I did that and it doesn't work. Tried both - Dreamweaver and the good ol' notepad. The problem as described above persists.

Anybody else have any ideas how to fool IE into rendering the page correctly?

BustaMike is offline BustaMike
King
You think you're better than me? You've been handling my ass pennies!!!
Nov 1999
time: 21:31
  Old Post 05-10-2003 10:38 Visit BustaMike's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase Your PM Length

Gimme 2 minutes... I'll give you the code... hold on.

BustaMike is offline BustaMike
King
You think you're better than me? You've been handling my ass pennies!!!
Nov 1999
time: 21:31
  Old Post 05-10-2003 10:51 Visit BustaMike's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

disregard.. the forums won't display the borders well and they got rid of all my formatting

Last edited by BustaMike on 05-10-2003 at 10:56

Sn00py is offline Sn00py
King
From New Zealand
Aug 2001
time: 13:31
  Old Post 05-10-2003 10:54 Visit Sn00py's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

Sometimes you will find many problems with tables such as this, a tiny 1 pixel long image will hold all the tables together nicely.

It's obvious Cell 6 will have the text, if your text is long, cell 5 will stretch downwards, gotta make sure that everything is justified correctly.


Honestly, I dislike Dreamweaver a LOT, it has caused so many uneccessary problems I just got sick of it. I went to Frontpage 2002 and will never look back. I am waiting to get Frontpage 2003. This program IS solid. People will say "But its Microsoft" But but but, well, tell them to shove off, if the program works, it works, simple as that. If it don't, then bugger off.

vovan is offline vovan
Emperor

Oct 2001
time: 06:31
  Old Post 05-10-2003 10:56
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Get a bigger avatar today!

Ah, yes, I haven't tried nested tables yet - only styles, attributes and spacer images. I'll bet this one will work though. Thanks.

BustaMike is offline BustaMike
King
You think you're better than me? You've been handling my ass pennies!!!
Nov 1999
time: 21:31
  Old Post 05-10-2003 11:05 Visit BustaMike's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

The borders might have to be tweaked if you want them to show, because they will double up in the nested tables. The stupid forums took away all my formatting and wouldn't display it right anyway so here's the correct code for what you want. You'll have to play with the dimensions obviously but the gut of it is there.

Attachment: untitled-1.gif
This has been downloaded 97 time(s).

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 05-10-2003 13:15
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Got spare money?

For god sakes stop using tables! That is so 1998!

Hueij is offline Hueij
Emperor
Kokonino Kounty
May 1999
time: 06:31
  Old Post 05-10-2003 13:42
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Enter the AD-FREE zone

quote:
Originally posted by Urban Ranger
For god sakes stop using tables! That is so 1998!

That's all fine and well, but I tried to recreate vovansim's lay-out in pure CSS for two hours now and I can't get it right in both Opera7 and IE6.

So nested tables is the way to go for now I guess...

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 05-10-2003 13:46
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by Hueij
That's all fine and well, but I tried to recreate vovansim's lay-out in pure CSS for two hours now and I can't get it right in both Opera7 and IE6.


Hm.

I suppose a better way of saying it is to redo the layout The reason is it is silly to attempt pixel perfect layout on such a huge array of disparge output devices, some of them are not even visual.

Hueij is offline Hueij
Emperor
Kokonino Kounty
May 1999
time: 06:31
  Old Post 05-10-2003 14:43
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Civilization 2

Maybe he should be using frames

Hehe...

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 05-10-2003 15:13
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Enter the AD-FREE zone

* Urban Ranger throws a cabbage at Hueij

vovan is offline vovan
Emperor

Oct 2001
time: 06:31
  Old Post 05-10-2003 22:14
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Put an end to popups!

Frames? The horror! Nooooooooo....




Yeah, any way, nested tables worked perfectly fine, and I got my pixel-perfect solution on IE 6, Mozilla 1.4, and Opera 7.

Another question: I was looking at this mozilla.org site, and there is a whole bunch of different distributions over there: mozilla, firebird, and thunderbird. Anyone know the difference between those?

St Leo is offline St Leo
King of Scenario League
Member of the Apolyton Social Democratic Party
Jul 2005
time: 00:31
  Old Post 05-10-2003 22:15 Visit St Leo<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Remove this text

Well, you could always merge Cell 4 with Cell 5 and create a special child table in there with two cells.

vovan is offline vovan
Emperor

Oct 2001
time: 06:31
  Old Post 05-10-2003 22:16
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by St Leo
Well, you could always merge Cell 4 with Cell 5 and create a special child table in there with two cells.


Cross-post is that? That's what I did.

St Leo is offline St Leo
King of Scenario League
Member of the Apolyton Social Democratic Party
Jul 2005
time: 00:31
  Old Post 05-10-2003 22:17 Visit St Leo<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by vovansim
Another question: I was looking at this mozilla.org site, and there is a whole bunch of different distributions over there: mozilla, firebird, and thunderbird. Anyone know the difference between those?


Mozilla: The old-style suite
Firebird: A temporary browser fork that strips away a lot of the fat and some of the bone marrow
Thunderbird: A temporary mail fork that strips away al lot of the fat and none of the bone marrow

chegitz guevara is offline chegitz guevara
King
Ft. Lauderdale, FL Communist Party of Apolyton
Jun 2000
time: 00:31
  Old Post 05-10-2003 22:24 Visit chegitz guevara's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton buy from Amazon

layout tables
Use layers.

Hueij is offline Hueij
Emperor
Kokonino Kounty
May 1999
time: 06:31
  Old Post 06-10-2003 03:45
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by chegitz guevara
layout tables
Use layers.

Layers?? As in Netscape layers?

chegitz guevara is offline chegitz guevara
King
Ft. Lauderdale, FL Communist Party of Apolyton
Jun 2000
time: 00:31
  Old Post 06-10-2003 03:58 Visit chegitz guevara's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:
Originally posted by Hueij

Layers?? As in Netscape layers?


No, not Netcape layers, CSS layers. It also requires a little javascript, since you need to get the layers on the right to line up with the right edge of the left layers.

Download the SnapLayers extension from PVII, and you can have valid CSS layers with the layout you want.

Last edited by chegitz guevara on 06-10-2003 at 04:08

Hueij is offline Hueij
Emperor
Kokonino Kounty
May 1999
time: 06:31
  Old Post 06-10-2003 05:37
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Avatar Enlargement: We've got the solution

Javascript? To get your lay-out right with CSS?

Anyway, is there a way in CSS to get a block to stretch to the bottom of the screen? This is the problem I ran into when I tried to make vovansim's lay-out to work in both IE and opera. Opera takes the "height:100%" but IE doesn't.

Same goes for stretching to the width of the screen.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 06-10-2003 07:16
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
Originally posted by chegitz guevara
No, not Netcape layers, CSS layers. It also requires a little javascript, since you need to get the layers on the right to line up with the right edge of the left layers.

Download the SnapLayers extension from PVII, and you can have valid CSS layers with the layout you want.


That's an interesting idea, though I still maintain that any designer who wants to treat the Web like tranditional media are in error.

The Web is not Print

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 06-10-2003 07:17
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by vovansim
Yeah, any way, nested tables worked perfectly fine, and I got my pixel-perfect solution on IE 6, Mozilla 1.4, and Opera 7.


I did that way back in 1996. Is there something new you want to tell me?

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 06-10-2003 07:24
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

quote:
Originally posted by Hueij
Anyway, is there a way in CSS to get a block to stretch to the bottom of the screen? This is the problem I ran into when I tried to make vovansim's lay-out to work in both IE and opera. Opera takes the "height:100%" but IE doesn't.


Which cell is that? Cell 5? Try setting margin-bottom to 0.

Several weeks I was playing around with CSS, which involved placing several boxes around on the screen. It worked perfectly in Mozilla, but IE foobared on it as usual

chegitz guevara is offline chegitz guevara
King
Ft. Lauderdale, FL Communist Party of Apolyton
Jun 2000
time: 00:31
  Old Post 06-10-2003 08:25 Visit chegitz guevara's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by Urban Ranger
That's an interesting idea, though I still maintain that any designer who wants to treat the Web like tranditional media are in error.


I agree with you, but we wouldn't be true to our craft if we weren't pushing the edge.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:31
  Old Post 06-10-2003 13:21
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Suffering from ads?

Agreed.

That's why we should be blazing new trails, or at least follow them.

St Leo is offline St Leo
King of Scenario League
Member of the Apolyton Social Democratic Party
Jul 2005
time: 00:31
  Old Post 07-10-2003 04:34 Visit St Leo<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton or Terrorists Win

quote:
Originally posted by chegitz guevara


I agree with you, but we wouldn't be true to our craft if we weren't pushing the edge.


Too bad you can't do that in MSIE.

chegitz guevara is offline chegitz guevara
King
Ft. Lauderdale, FL Communist Party of Apolyton
Jun 2000
time: 00:31
  Old Post 07-10-2003 04:57 Visit chegitz guevara's homepage!
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Sure you can. It's just difficult.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0581 seconds (92.98% PHP - 7.02% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net