|
From: Quarco on 20 Jun 2008 05:34 I know.. i know.. tables are not the best solution to solve things.. But... What about an auto-scaling table like: <table width="100%" > <col /> <col width="400" /> <tr> <td><div id="googleMap" style="width: 100%"></div></td> <td>Menu-kind-of-thing</td> </tr> </table> I really tried to do that first with floating div's, but: then I had to work with a <body onresize="setSize()"> function that recalculated the available width and adjusted the content-div when window resized..But... then again... FireFox complains it doesn't recognise onresize .... So.... Do we really need to expell tables or do they provide some practical functionallity???? Dutch regards, Marco
From: Gregor Kofler on 20 Jun 2008 07:52 Quarco meinte: > I know.. i know.. tables are not the best solution to solve things.. > But... What about an auto-scaling table like: > > <table width="100%" > > <col /> > <col width="400" /> > <tr> > <td><div id="googleMap" style="width: 100%"></div></td> > <td>Menu-kind-of-thing</td> > </tr> > </table> Fascinating markup. Anyway, where is the JS-related question? Gregor -- http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie http://web.gregorkofler.com ::: meine JS-Spielwiese http://www.image2d.com ::: Bildagentur f�r den alpinen Raum
From: Quarco on 20 Jun 2008 09:53 "Which approach is the best (from DOM / css / standards / etc point of view) :-) I had it to work with javascript and floating div's, but after trying these (working) 8 lines of table-code I thought "Perhaps the javascript approach is the wrong solution".. "Gregor Kofler" <usenet(a)gregorkofler.at> schreef in bericht news:kXM6k.28$kv2.14(a)nntpserver.swip.net... > Quarco meinte: >> I know.. i know.. tables are not the best solution to solve things.. >> But... What about an auto-scaling table like: >> >> <table width="100%" > >> <col /> >> <col width="400" /> >> <tr> >> <td><div id="googleMap" style="width: 100%"></div></td> >> <td>Menu-kind-of-thing</td> >> </tr> >> </table> > > Fascinating markup. Anyway, where is the JS-related question? > > Gregor > > > -- > http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie > http://web.gregorkofler.com ::: meine JS-Spielwiese > http://www.image2d.com ::: Bildagentur f�r den alpinen Raum >
From: Gregor Kofler on 20 Jun 2008 17:38 Quarco meinte: > "Which approach is the best (from DOM / css / standards / etc point of view) Could you please stop top-posting. (And quoting sigs.) > :-) > > I had it to work with javascript and floating div's, but after trying these > (working) 8 lines of table-code I thought "Perhaps the javascript approach > is the wrong solution".. CSS/HTML is sufficient. If you need JS you got it completely wrong. Gregor -- http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie http://web.gregorkofler.com ::: meine JS-Spielwiese http://www.image2d.com ::: Bildagentur f�r den alpinen Raum
|
Pages: 1 Prev: Creating files on client side using javascript Next: Earn 25 US$ in just 5 mins . . . |