text-align: center
yapın. Ek olarak width: 100%
yapın.Hayır resmin altındaki başlık, paragraf ve link etiketinden bahsediyorum yani resmin altında kalanlardan.Hangi yazıyı? Üstteki yazıyı diyorsanıztext-align: center
yapın. Ek olarakwidth: 100%
yapın.
<!DOCTYPE html>
<html>
<head>
<title>a</title>
</head>
<style type="text/css">
.benimdivim {
width: 300px;
text-align: center;
display:block;
float:left;
margin:5px;
}
</style>
<body>
<div class="benimdivim">
<img src="https://via.placeholder.com/300x300">
<h2>Bu Başlığımız</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>
</div>
<div class="benimdivim">
<img src="https://via.placeholder.com/300x300">
<h2>Bu Başlığımız</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>
</div>
</body>
</html>
Hocam dediğinizi yaptım ama istediğim gibi olmadı ve sayfayı küçülttüğümde responsive olması lazım müsait iseniz dosyayı atsam bakabilir misiniz?Bir div oluşturun, divin genişliğini resim genişliği ile aynı yapın. Yazdığınız yazılar div içerisinde alt alta sıralanır.
Örneğin:
HTML:<!DOCTYPE html> <html> <head> <title>a</title> </head> <style type="text/css"> .benimdivim { width: 300px; text-align: center; display:block; float:left; margin:5px; } </style> <body> <div class="benimdivim"> <img src="https://via.placeholder.com/300x300"> <h2>Bu Başlığımız</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p> </div> <div class="benimdivim"> <img src="https://via.placeholder.com/300x300"> <h2>Bu Başlığımız</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p> </div> </body> </html>
Görüntü:
Eki Görüntüle 1065983
Ekleyin bakalım, responsive olmaz çünkü sadece nasıl yapılacağını gösterdim.Hocam dediğinizi yaptım ama istediğim gibi olmadı ve sayfayı küçülttüğümde responsive olması lazım müsait iseniz dosyayı atsam bakabilir misiniz?
Hocam dediğinizi yaptım ama istediğim gibi olmadı ve sayfayı küçülttüğümde responsive olması lazım müsait iseniz dosyayı atsam bakabilir misiniz?
Yazdım hocam ama telefon görüntüsünde problem yaşadım.Responsive için tekrar @media etiketlerini kullanabilirsiniz. Yapmanız gereken bu.
Drive yükledim hocam.Ekleyin bakalım, responsive olmaz çünkü sadece nasıl yapılacağını gösterdim.
Maalesef yok hocam güncelledim linki.Hocam Drive'dan hiçbir şey anlaşılmıyor. GitHub hesabınız varsa oraya yükleyin.
Bu sitenin çalışmasını sağlamak için gerekli çerezleri ve deneyiminizi iyileştirmek için isteğe bağlı çerezleri kullanıyoruz.