CSS Resim ortalama

menunun css kodlarını yazar mısınız ?
Şuan sadece böyle yaptım fakat yeni bir div ekleyince ve o divin genişliğini ayarlayınca bu da değişiyor.

KOD:
<html>
<head>
<meta charset="UTF-8" />
<link type="text/css" rel="stylesheet" href="kurt-style.css">
<title>Site Deneme</title>
</head>
<body>
<div id="menu">
<li><a href="kadro.html">Kadro</a></li>
<li><a href="#">Transfer</a></li>
<li><a href="#">Scout</a></li>
<li><a href="#">Haberler</a></li>
<li><a href="#">Site Hakkında</a></li>
<li><a href="#">İletişim</a></li>
<li><a href="#">Facebook Grubumuz</a></li>
</div>
</body>
</html>

CSS:
#menu {
margin: 0px;
padding: 0px;
list-style-type: none;
}
#menu li {
float: left;
width: 150px;
margin: 10px 5px 0px 0px;
}
#menu a {
font: 15px tahoma;
color: black;
background-color: yellow;
border: 3px solid red;
text-decoration: none;
display: block;
text-align: center;
line-height: 30px;
margin-right: 2px;
}
#menu a:hover {
background-color: red;
}
 
Şuanda mevcutta bulunan bu menu css ni bir word belgesine yada notepada kaydet.Bir kenarda bulunsun.

#menu {
margin: 0px;
padding: 0px;
list-style-type: none;
}
#menu li {
float: left;
width: 150px;
margin: 10px 5px 0px 0px;
}
#menu a {
font: 15px tahoma;
color: black;
background-color: yellow;
border: 3px solid red;
text-decoration: none;
display: block;
text-align: center;
line-height: 30px;
margin-right: 2px;
}
#menu a:hover {
background-color: red;
}

**********************************************************************
Bunları ekleyip bir dene bakalım.

.menu
{
width:1024px;
height:40px;
margin:auto;
background-color:#fff;
border-radius: 5px 5px 5px 5px;
}
.menu .ic
{
background:url(resim.jpg);
margin-left:4px;
width:200px;
height:40px;
float:left;
text-align:center;
}
.menu .ic a{
color: red;
text-decoration: none;
font-size:20px;
font-family:tahoma;
height:40px;
line-height: 40px;
}
.menu .ic a:hover{
color:#fff;
}
 
Uyarı! Bu konu 10 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Technopat Haberler

Geri
Yukarı