Topic: What is center anyhow (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9555" title="Pages that link to Topic: What is center anyhow (Page 1 of 1)" rel="nofollow" >Topic: What is center anyhow <span class="small">(Page 1 of 1)</span>\

 
Rooster
Bipolar (III) Inmate

From: the uterus
Insane since: Nov 2002

posted posted 11-17-2002 04:39

Here's a stupid question, how might one go about centering a table that has a height of 100%, horizontally in Netscape?



[This message has been edited by Rooster (edited 11-17-2002).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-17-2002 06:25

<center>. Heh. Actually, that's not really necessary. Netscape 4.x misinterprets text-align:center for the table to mean that it should be centered. So try that, and then set text-align:left for the TD's within the table, to cancel it out on browsers that understand text-align properly.

You may also want to run as fast as you can into a brick wall, as that will be more enjoyable than trying to write code that works in Netscape 4.x.

Rooster
Bipolar (III) Inmate

From: the uterus
Insane since: Nov 2002

posted posted 11-17-2002 06:48


I've tried <center> except if the table isn?t full, it collapses in on it self, making it really hard to make a table that is 100% in height.

And then if you leave the <center> out, the table will expand but no longer be in the center, which really messes up the whole ?center? thing.

And then if you wrap the table in a <div align=?center?> the scroll bars can?t figure out what to do.

And then you figure if you give up the table all together and just use <div> tags it might work out, right. Wrong, because Netscape thinks that 100% should always be 100% of the entire window instead of 100% of the containing element. Why me?

It sounds simple but I?ve trying off and on for literally months now.

I?m trying to do something like this...
http://efs1.com/hfd/index.htm

It works in IE but everything goes to crap in NS and Moz.


Any other ideas?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-17-2002 06:55

Are you specifying a width for the table?

Rooster
Bipolar (III) Inmate

From: the uterus
Insane since: Nov 2002

posted posted 11-17-2002 07:04

Yes, the actual css is: TABLE.main { width: 663px; height: 98%; border: none; }

InSiDeR
Maniac (V) Inmate

From: Oblivion
Insane since: Sep 2001

posted posted 11-17-2002 08:20

Netscape deserves to die.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-17-2002 14:53

As no one has yet dropped in the FAQ:
http://faq.ozoneasylum.com/841/

___________________
Emps

FAQs: Emperor



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu