View Single Post
Sponsorlu Bağlantılar
Zoque.Forum
Advertisement
Old 21.02.2007   #2 (permalink)
metsatöll
 
metsatöll's Avatar
 
Üyelik Tarihi: 11.07.2001
Yer: Tallinn
Yaş: 28
Mesaj: 519
Görsel: 9
Re: Dİv & CSS ile Site Tasarımında Birkaç Soru

1.sorun icin;
Bir kutucuk olusturup onun icerisine icerigini yazmak istedigin ikinci bir kutucuk olustur. Mantiken iceride bulunan kutucuk büyüdükce cercevesinide uzatacaktir. [asagidaki kodlarda bunu görebilirsin]

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
<head>
<style>

body {background:#c0c0c0;}

#siyahAlan {
	background: #000;
	width:600px;
	text-align:right;
	}

#beyazAlan {
	background:#fff;
	width:500px;
	padding:10px;

	voice-family: "\"}\""; /* ie için */
	voice-family:inherit;
	width:480px;  }
	HTML>body #beyazAlan { width:480px; /* OPERA için */
	}



}
</style>

</head>

<body>
<div id="siyahAlan">
	<div id="beyazAlan">
	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.
	</div>
</div>

</body>
</HTML>
2. soruna gelince padding degerlerini ie ve firefoxta ayni gösterebilmek icin #beyazAlan'a atanan kodlari incele

Margin degerleri tüm browserlarda esit görünür. Yanliz hem float hem margin kullandigin bir kutucuk icin CSS icerisinde ayrica display:inline kodunu kullanman gerekir, aksi takdirde ie gercek margin degerinin iki katini ekrana yansitir.
metsatöll şu an çevrimdışı   Mesajdan alıntı yaparak yeni bir cevap ekleyin