Re: Centering



In article <3cf89$4615c6ef$40cba7c0$5478@xxxxxxxx>,
"Jonathan N. Little" <lws4art@xxxxxxxxxxxxx> wrote:

dorayme wrote:
I assume there is simply no good way to centre the mass of
rectangles (shrink fit a wrapper and centre wrapper, left/right)
here:

http://tinyurl.com/ypnfc8

?

If this is so, since they are reasonably fine uncentered anyway,
a URL to suitable javascript "solution" would be appreciated - if
there be such.


Not full tested but...


Add "wrapper" DIV to contain all thumb DIVs:


JavaScript:
function centerMe(){
var offsetWidth=document.documentElement.offsetWidth


Thanks for this Jonathan, it works in Safari, also in iCab but
not in FF or Opera. I have not tested in WinIE (it has no effect
in MacIE... <g>) I will put it up at:

http://tinyurl.com/ypnfc8

--
dorayme
.



Relevant Pages

  • Re: Centering
    ... rectangles (shrink fit a wrapper and centre wrapper, ... This is not centering the mass of thumbnails in Safari: ...
    (alt.html)
  • Re: Centering
    ... I assume there is simply no good way to centre the mass of ... rectangles (shrink fit a wrapper and centre wrapper, ...
    (alt.html)
  • Centering
    ... I assume there is simply no good way to centre the mass of ... rectangles (shrink fit a wrapper and centre wrapper, ...
    (alt.html)
  • Re: Centering
    ... rectangles (shrink fit a wrapper and centre wrapper, ... Add "wrapper" DIV to contain all thumb DIVs: ... var offsetWidth=document.documentElement.offsetWidth ...
    (alt.html)