black Posted May 19, 2008 Report Share Posted May 19, 2008 (edited) Ir lapa, kurā ir plata tabula. Problēma ir, ka kaut kā nesanāk panākt to, lai tabula "neizlektu" no lapas. Sākumā nodomāju, ka esmu nejauši uzlicis tabulai float:left un aizmirsis uzlikt 'clear', bet izskatās, ka tā nav. Vai ir kādas idejas, kā to tabulu 'iegrožot'? ('table-layout: fixed' izmēģināju, man vajag, lai tabula nevis būtu fiksētā platumā, bet 'izplestu' lapu, kurā atrodas). Edited June 3, 2008 by black Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 19, 2008 Report Share Posted May 19, 2008 Nerredzu kur probleema ... visu lapu & tabulu ieliec ieksh <div> kuram nav noraadiits platums, augstums.... teiksim shaadi Link to comment Share on other sites More sharing options...
black Posted May 19, 2008 Author Report Share Posted May 19, 2008 Nu, bet izmēģini savam pirmajam div (tam, kuram nav platuma) ielikt kaut kādu background color. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 19, 2008 Report Share Posted May 19, 2008 njaa... FF neistiepj arii ja ieliek DIV ar fikseetu platumu (tadu kas iziet arpus screena) ... ---- Var vel visu lapu ielikt tabulaa (shis gan ir dranchhiigs risinajums) <table><tr><td> lapaa</td></tr></table> .. P.S. netceros no galvas, bet CSS bija iespeja atsaukties uz kaadu citu elementu (sajaa gadijumaa platumu njemt no tabulas platuma ..) Link to comment Share on other sites More sharing options...
black Posted May 19, 2008 Author Report Share Posted May 19, 2008 Šajā gadījumā es iepriekš nezinu, cik plata būs tabula, tāpēc fiksētu platumu izmantot nevaru. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 19, 2008 Report Share Posted May 19, 2008 nee tas skaidrs... bet skjiet ka bija iespeja atsaukties uz kada elementa platumu (ipasiibu) ... taa kaa tas automatiski... bisk. velak pamekleshu kaa tas tika dariits.... (pasam palika intresanti ;) ) Link to comment Share on other sites More sharing options...
andrisp Posted May 19, 2008 Report Share Posted May 19, 2008 Viens tāds nepārāk smuks veids, bet strādātu, būtu parentam uzlikt float: left. (Tikai tad vēl tavā konkrētajā variantā ir jāizvāc width uzstādījumi .formPage , .formContainer un .reportContainer klasēm). Link to comment Share on other sites More sharing options...
black Posted May 19, 2008 Author Report Share Posted May 19, 2008 Varbūt ar javascript noteikt tabulas platumu un pēc tam tādu pašu uzsettot conteiner'im? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 19, 2008 Report Share Posted May 19, 2008 nu ja tas tev der tad kur problema? // izmantojot onload eventu pie Body ... Link to comment Share on other sites More sharing options...
andrisp Posted May 19, 2008 Report Share Posted May 19, 2008 black, kāpēc neder manis piedāvātais risinājums ? Link to comment Share on other sites More sharing options...
black Posted May 19, 2008 Author Report Share Posted May 19, 2008 Andri, es nesaku, ka neder. (Vēl neesmu izmēģinājis.) Link to comment Share on other sites More sharing options...
andrisp Posted May 19, 2008 Report Share Posted May 19, 2008 Katrā ziņa - floatētais variants noteikti būs labāks par js variantu. Link to comment Share on other sites More sharing options...
black Posted May 19, 2008 Author Report Share Posted May 19, 2008 Izmēģināju, nesanāca. Kurā vietā (skat. Grey_Wolf piemēru) vajadzētu likt to floatu? Link to comment Share on other sites More sharing options...
andrisp Posted May 19, 2008 Report Share Posted May 19, 2008 http://paste.php.lv/7414?lang=html4strict Link to comment Share on other sites More sharing options...
black Posted May 19, 2008 Author Report Share Posted May 19, 2008 Tavā gadījumā arī nestrādā, ja tam floatotajam divam uzliek kaut kādu background color. Link to comment Share on other sites More sharing options...
Recommended Posts