So good to have friends!
OK, so it WAS simple -- Thanks, Angél.
Here's the body now:
<body>
<table style="margin-left:auto; margin-right:auto;">
<tr>
<td><div id="leftpanel"></div></td>
<td><div id="middlepanel">You will need JavaScript enabled to use
this page</div></td>
<td><div id="rightpanel"></div></td>
</tr>
<tr>
<td></td>
<td style="text-align:center"><div id="lowerpanel"></div></td>
<td></td>
</tr>
</table>
</body>
Works for me!
Bob
On Sun, Aug 12, 2012 at 10:31 AM, Angel Herráez <angel.herr...@uah.es>wrote:
> Bob wrote:
>
> > -- I had to play some jQuery tricks to implement <center>, but that's
> good to learn how to do
> > anyway. I did have a problem implementing my .center() method without
> hard-coding widths, but
> > that's probably what you need to do anyway when you use anything that
> involves page centering.
>
> Centering without <center> or align="center" (both of which are deprecated)
> is quite a pain, yes, but have you tried this? It usually works for me with
> tables.
>
>
> <table style="margin:0 auto;">
>
> or
>
> <table style="margin-left:auto; margin-right:auto;">
>
>
> And no need for calling $(window).resize()
>
> You can of course take it out from the body into your css sectin or
> external
> file.
>
> <style type="text/css">
> .centered { margin-left:auto; margin-right:auto; }
> </style>
>
> <table class="centered">
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers