- 5 Nis 2016
- 147
- 0
Merhaba ekranı 4 eş parçaya ayırmak istiyorum bunu görmek için border verdim ve ortada boşluk kalıyor with verdiğimde border aşağıya atlıyor ben birleşik olmasını istiyorum nasıl yapabilirim ?
HTML Kodlarım ;
CSS Kodlarım ;
HTML Kodlarım ;
Kod:
<!DOCTYPE html>
<html lang="en">
<head>
<**** charset="UTF-8">
<title>Barış Yıldızoğlu</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="sol-ust">
<p>Sol-Üst</p>
</div>
<div class="sag-ust">
<p>Sağ-Üst</p>
</div>
<div class="sol-alt">
<p>Sol-Alt</p>
</div>
<div class="sag-alt">
<p>Sağ-Alt</p>
</div>
</body>
</html>
CSS Kodlarım ;
Kod:
* {
margin:0;
padding:0;
border:0;
outline:0;
list-style:none;
list-style-type:none;
text-decoration:none;
}
.sol-ust {
float: left;
width: 671px;
height: 315px;
border: 2px solid black;
}
.sag-ust {
float: right;
width: 670px;
height: 315px;
border: 2px solid black;
}
.sol-alt {
float: left;
width: 671px;
height: 315px;
border: 2px solid black;
}
.sag-alt {
float: right;
width: 670px;
height: 315px;
border: 2px solid black;
}