sayed Posted September 22, 2008 Report Share Posted September 22, 2008 Jautājums sekojoš ir tabula, tabulā ir bilde, bet kad aiz bildes sāk rakstīt tekstu, teksts sāk rakstīties no bildes apakšējā labā stūra. Kā dabūt lai teksts sāktu rakstīties no augšējā stūra? Paldies! <table width="400" border="1" align="center"> <tr> <td valign="top"><img src="../Blue hills.jpg" width="150" height="150" />Teksts, teksts </td> </tr> </table> Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2008 Report Share Posted September 22, 2008 Ar CSS norādi bildei vertical-align: top; Link to comment Share on other sites More sharing options...
sayed Posted September 22, 2008 Author Report Share Posted September 22, 2008 Bez CSS vienkārši nevar? Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2008 Report Share Posted September 22, 2008 Var mēģināt ar valign atribūtu, bet es nezinu. Link to comment Share on other sites More sharing options...
Klez Posted September 22, 2008 Report Share Posted September 22, 2008 šo rindiņu <td valign="top"><img src="../Blue hills.jpg" width="150" height="150" />Teksts, teksts </td> nomainām pret šo <td valign="top">Teksts, teksts <br /><img src="../Blue hills.jpg" width="150" height="150" /></td> Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2008 Report Share Posted September 22, 2008 Klez, man gan liekas, ka tas nav gluži tas, ko autors gribēja. Link to comment Share on other sites More sharing options...
sayed Posted September 22, 2008 Author Report Share Posted September 22, 2008 Tas ko man vajadzēja tika panāks šādi: <style type="text/css"> .bilde img { vertical-align: top; float: left; } </style> <table width="400" border="1" align="center"> <tr> <td class="bilde" valign="top"><img src="../Blue hills.jpg" width="150" height="150" />Teksts, teksts</td> </tr> </table> Link to comment Share on other sites More sharing options...
andrisp Posted September 23, 2008 Report Share Posted September 23, 2008 Priekškam floats ? Link to comment Share on other sites More sharing options...
sayed Posted October 21, 2008 Author Report Share Posted October 21, 2008 Nezināju ka lai paskaidro tāpēc uztaisīju screen shot: http://pic2.fotki.lv/photos2/5/W0002427/00...2_%23_Sayed.jpg 1. ir ar float: left; 2. bez Link to comment Share on other sites More sharing options...
andrisp Posted October 21, 2008 Report Share Posted October 21, 2008 Skaidrs, bet pamēģini izņemt to vertical-align tagad ārā. ;) Link to comment Share on other sites More sharing options...
sayed Posted October 21, 2008 Author Report Share Posted October 21, 2008 (edited) Sapratu mājienu :) tas ir lieks :) Vienu lietu gan vēl nesapratu - kā dabūt lielāku atstarpi no bilde|teksts? Uz IE itkā ir OK atstarpe, bet FF piestumj galīgi klāt :( Edited October 21, 2008 by sayed Link to comment Share on other sites More sharing options...
indoom Posted October 21, 2008 Report Share Posted October 21, 2008 pieliec bildei atribūtu hspace="10" vai/un vspace="10" Link to comment Share on other sites More sharing options...
andrisp Posted October 21, 2008 Report Share Posted October 21, 2008 Vai arī ar CSS margin/padding. Link to comment Share on other sites More sharing options...
daviskrex Posted November 19, 2008 Report Share Posted November 19, 2008 Bez CSS vienkārši nevar? Var arī imidžam - style="vertical-align: top;" Link to comment Share on other sites More sharing options...
Recommended Posts