kocak37 Posted January 16, 2013 Share Posted January 16, 2013 arkadaşlar şimdi sol tarafa resim koydum hemen resmin yanına yazı yazmak istiyorum fakat resmin yazı yazdığımda alt köşeden başlıyor ben yazıyı üst tarftan ve yanından aynı hizada olmasını istiyorum bunun nasıl yaparım Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 16, 2013 Share Posted January 16, 2013 Bu gibi durumlarda en basit yöntem verileri tablo içine koymaktır. 2 sütun ve tek satırlık 1 tablo ile sorunu çözebilirsin. <TABLE> <TR> <TD valign="top"><img src="http://www.tnctr.com/uploads/profile/photo-5577.jpg" border="0" /></TD> <TD valign="top">Bu resim KintaRo'nun avatarıdır.<br />KintaRo TncTR belediyesinde işçidir.</TD> </TR> </TABLE> Quote Link to comment Share on other sites More sharing options...
kocak37 Posted January 17, 2013 Author Share Posted January 17, 2013 bunu css lle çözemezmiyiz tablo benimde aklıma geldi ama bu ödevde belki tabloya sıkıntı olur ödev için Quote Link to comment Share on other sites More sharing options...
ylmz025 Posted January 17, 2013 Share Posted January 17, 2013 kutu dediğin checkbox mı dostum. bi resim verebilir misin Quote Link to comment Share on other sites More sharing options...
alixboy33 Posted January 17, 2013 Share Posted January 17, 2013 Css kodu : img.sol { float:left; margin:0 15px 10px 0; } Resmi ekleyecegin yerede bu şekilde : <img src="resim" class="sol"> Quote Link to comment Share on other sites More sharing options...
volkantr19 Posted February 27, 2013 Share Posted February 27, 2013 Alixboy33 arkadaşım cevabı vermiş. CSS de resmin sağına yada soluna yazı yazmak için bir kodda ben veriyorum... /* Resmi sol tarafa almak için kullanacağımız kod */ .sol { float:left; margin:0 0 10px 10px;} /* Resmi sağ tarafa almak için kullanacağımız kod*/ .sag { float:right; margin:0 0 10px 10px;} bu şekilde sınıfı tanımladıktan sonra img etiketinde sınıf olarak kullanabiliriz;; <img class=" sol" src="www.resmin adresi" /> <img class=" sag" src="www.resmin adresi" /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.