рпр Posted September 22, 2004 Report Share Posted September 22, 2004 <div class="kreisais"> <table width="100%" border="1"> <tr> <td>1</td> <td>2</td> </tr> </table> </div> <div class="labais">123</div> vai ar css palīdzību ir iespējams izveidot, lai div.labais width būtu statisks, piemēram 100px, bet div.kreisais būtu 100%-100px? ar float ja saliek, tad labi ir līdz tam brīdim, kad dati neaizņem 100%, pretējā gadījumā div.labais ir zem div.kreisais. Link to comment Share on other sites More sharing options...
Venom Posted September 22, 2004 Report Share Posted September 22, 2004 (edited) kaut kā tā: <div class="labais" style="border:1px solid red;float:right;width:100px">menu menu menu menu menu menu menu menu menu menu </div> <div class="kreisais" style="border:1px solid blue;float:left;margin-right:auto"> <table border="1" width="100%"> <tr><td> contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents </td></tr> </table> </div> Edited September 22, 2004 by Venom Link to comment Share on other sites More sharing options...
рпр Posted September 22, 2004 Author Report Share Posted September 22, 2004 experimenteejot jau biju nonaacis liidz kaut kam liidziigam, bet tas diemzjeel straadaa tikai IE Link to comment Share on other sites More sharing options...
Gacha Posted September 22, 2004 Report Share Posted September 22, 2004 Ja pareizi sapratu, tad mošk šitā: .kreisais { width: 100px; float: left; } .labais { margin-left: 100px; } Un viss :) Link to comment Share on other sites More sharing options...
рпр Posted September 22, 2004 Author Report Share Posted September 22, 2004 tagad to pashu pameegjini izdariit, lai labajaa pusee buutu statisks izmers. Link to comment Share on other sites More sharing options...
Gacha Posted September 22, 2004 Report Share Posted September 22, 2004 Kas šajā gadījumā tas labais izstiepsies? Nu ja tā, tad ieliec šos abus iekš: .viss { width: 700px; //cik vajag? } Nu un tagad cik liels būs kreisais attiecīgi būs labais :) Link to comment Share on other sites More sharing options...
рпр Posted September 22, 2004 Author Report Share Posted September 22, 2004 .viss shajaa gadiijumaa vajag 100% nevis 700px un tur nu atkal es saskatu savu probleemu. // apsveicu sevi ar 200. ierakstu ":) Link to comment Share on other sites More sharing options...
Gacha Posted September 22, 2004 Report Share Posted September 22, 2004 Nu bet shitā tev sanāca? strādā? Link to comment Share on other sites More sharing options...
Recommended Posts