|
Posted by dorayme on 04/06/07 05:32
In article <3cf89$4615c6ef$40cba7c0$5478@NAXS.COM>,
"Jonathan N. Little" <lws4art@centralva.net> 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
Navigation:
[Reply to this message]
|