JazMan Posted June 29, 2005 Report Share Posted June 29, 2005 (edited) Man sanak gljuki ar attēla izvietoshanu attiecibā pret tekstu ieksh diva piemeram: kods: <div id="arfonu2"> <img src="bilde.jpg" border="3" align=left>tekststekststeksts </div> ------------------------------- css: #arfonu2 { margin: 0px; clear: both; display: block; padding: 4px; border: 1px solid #D9DCC5; background-color: #F9FAEF; } rezultātā ja teksta maz tad divs neizstiepjas lidz ar bildi, un bilde izlien ārpus diva robezhām. ka tikai bildei nonjem align ta viss stradaa bet bilde attiecibaa pret tekstu nav izvietota shādi: |-------|Tekstss teksts teksts tekts |.........|Tekstss teksts teksts tekts |Bilde..|Tekstss teksts teksts tekts |-------|Tekstss teksts teksts tekts :blink: Edited June 29, 2005 by JazMan Link to comment Share on other sites More sharing options...
Delfins Posted June 29, 2005 Report Share Posted June 29, 2005 tas tāpēc ka align parametrs bildei izdara floating... jādara ir šitā <div> <img ..> teksts <br style="clear: both;" /> </div> Link to comment Share on other sites More sharing options...
JazMan Posted June 29, 2005 Author Report Share Posted June 29, 2005 Liels paldies tagad viss oki!!! Link to comment Share on other sites More sharing options...
JazMan Posted June 29, 2005 Author Report Share Posted June 29, 2005 Operaaa u Firefox viss oki, be IE (ēzelītis) vienalga nesaprot. :huh: Link to comment Share on other sites More sharing options...
JazMan Posted June 29, 2005 Author Report Share Posted June 29, 2005 iebliezhu visu div saturu tabulaa ar vienu lauku, tagad rada normali protams ka variants nav no labakajiem, bet stradaa :D Link to comment Share on other sites More sharing options...
Qued Posted June 29, 2005 Report Share Posted June 29, 2005 Iesaku izlasīt par floatu clearingu. Sk. http://www.positioniseverything.net/easyclearing.html 100% palīdz. :) Link to comment Share on other sites More sharing options...
Recommended Posts