Re: [WSG] centring and viewport size (OT?)

2007-03-20 Thread David Hucklesby
On Mon, 19 Mar 2007 14:43:58 +, Designer wrote: > Thanks to those who responded on this. What I've done is to make a file > which uses the > javascript to determine the space available in the browser window, [...] > > > You can see all this at: http://www.rhh.myzen.co.uk/gam/sandbox/ > Davi

Re: [WSG] centring and viewport size (OT?)

2007-03-20 Thread David Hucklesby
On Mon, 19 Mar 2007 14:43:58 +, Designer wrote: > Thanks to those who responded on this. What I've done is to make a file > which uses the > javascript to determine the space available in the browser window, [...] > > > You can see all this at: http://www.rhh.myzen.co.uk/gam/sandbox/ > Davi

Re: [WSG] centring and viewport size (OT?)

2007-03-20 Thread Designer
David Hucklesby wrote: Use JavaScript to change the element's top-margin style directly, perhaps? Cordially, David -- How exactly would you do that? (I'm interested, and I'm learning :-) ) -- Bob www.gwelanmor-internet.co.uk *

Re: [WSG] centring and viewport size (OT?)

2007-03-19 Thread David Hucklesby
On Mon, 19 Mar 2007 14:43:58 +, Designer wrote: > Thanks to those who responded on this. What I've done is to make a file > which uses the > javascript to determine the space available in the browser window, viz: > [...] (code snipped) > > Of course, since the php is server-side, I then have

Re: [WSG] centring and viewport size (OT?)

2007-03-19 Thread David Hucklesby
On Mon, 19 Mar 2007 14:43:58 +, Designer wrote: > Thanks to those who responded on this. What I've done is to make a file > which uses the > javascript to determine the space available in the browser window, viz: > [...] (code snipped) > > Of course, since the php is server-side, I then have

Re: [WSG] centring and viewport size (OT?)

2007-03-19 Thread Designer
Thanks to those who responded on this. What I've done is to make a file which uses the javascript to determine the space available in the browser window, viz: var height = 0; if( typeof( window.innerWidth ) ==

Re: [WSG] centring and viewport size (OT?)

2007-03-17 Thread Gunlaug Sørtun
Designer wrote: Most of the methods (non-tables) for centering a div vertically (and horizontally) suffer from the same problem: they use the div height to attach a top margin and use percentages. The result is that, when the window size gets to be smaller than the div size, the top of the c

Re: [WSG] centring and viewport size (OT?)

2007-03-17 Thread David Hucklesby
On Sat, 17 Mar 2007 13:03:25 +, Designer wrote: > [...] > Most of the methods (non-tables) for centering a div vertically (and > horizontally) > suffer from the same problem: they use the div height to attach a top margin > and use > percentages. The result is that, when the window size gets

Re: [WSG] centring and viewport size (OT?)

2007-03-17 Thread David Hucklesby
On Sat, 17 Mar 2007 13:03:25 +, Designer wrote: > [...] > Most of the methods (non-tables) for centering a div vertically (and > horizontally) > suffer from the same problem: they use the div height to attach a top margin > and use > percentages. The result is that, when the window size gets

Re: [WSG] centring and viewport size (OT?)

2007-03-17 Thread Lee Powell
Hi Bob How about adding an 'overflow: scroll' to the containing div, or failing that allocate it a 'min-height'? That might avoid having to use unnecessary javascript. Regards Lee On 17 Mar 2007, at 13:03, Designer wrote: I'm sorry if this is OT [but hey - it's weekend :-) ] but I'm pre