Jackal Posted March 1, 2007 Report Share Posted March 1, 2007 Ir div tags kurā atrodas bilde. Kā uztaisīt, lai div tags izstieptos līdz ar bildes augstumu? Link to comment Share on other sites More sharing options...
Delfins Posted March 1, 2007 Report Share Posted March 1, 2007 by default tas arī izstiepjās .. to biš tas izplatās tik daudz, cik augsts/plats kontents ir... Protams nerunājam, kad ir specifisks CSS... Tāpēc mēs jau arī neesam gaišreģi un neko tev nepateiksim, kamēr neiedosi CSS Link to comment Share on other sites More sharing options...
Jackal Posted March 1, 2007 Author Report Share Posted March 1, 2007 <div style="border-style:solid; border-width:1px;"> <img src="1.jpg" style="float:left; width:140px; margin-right:5px;" /> </div> Link to comment Share on other sites More sharing options...
andrisp Posted March 1, 2007 Report Share Posted March 1, 2007 (edited) Ir dažādi varianti. Viens no tiem: <div style="border-style:solid; border-width:1px;"> <img src="1.jpg" style="float:left; width:140px; margin-right:5px;" /> <div style="clear: both;"></div> </div> Otrs: <div style="border-style:solid; border-width:1px; float: left; "> <img src="1.jpg" style="float:left; width:140px; margin-right:5px;" /> </div> Imo bija vēl kaut kādi, bet tagad neatceros. Edited March 1, 2007 by andrisp Link to comment Share on other sites More sharing options...
Recommended Posts