Jump to content
php.lv forumi

centerēšana


p4F

Recommended Posts

kr4 man ir tāds html kods

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/> 
<meta name="author" content="author"/> 
<meta http-equiv="Content-Language" content="ru">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" type="text/css" href="default.css"/>
<title>HIPSHOP.LV - МАГАЗИН ХИП ХОП ОДЕЖДЫ</title>

</head>

<body>

<div class="content">
<div class="logo_header"></div>
<table class="menuwka" width="700" height="45" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td>
		<a href="#"><a href=""><img src="images/gl.png"  width="119" height="45" alt=""></a></td>
	<td>
		<a href="#"><img src="images/nov.png" width="83" height="45" alt=""></a></td>
	<td>
		<a href="#"><img src="images/kat.png" width="117" height="45" alt=""></a></td>
	<td>
		<a href="#"><img src="images/onas.png" width="133" height="45" alt=""></a></td>
	<td>
		<a href="#"><img src="images/info.png" width="84" height="45" alt=""></a></td>
	<td>
		<a href="#"><img src="images/dost.png" width="164" height="45" alt=""></a></td>
</tr>
</table>
<div class="mn"></div>
</div>

</body>
</html>

 

un tāds .css

*{
	font-family:   Arial,Tahoma,Verdana;
	font-size: 12px;
	color: #444444;
}
BODY{
	BACKGROUND-COLOR: #FFFFFF;
	padding : 0px 0px 0px 0px;
	margin : 0px 0px 0px 0px;

}
.content{
width:700;

}

.menuwka {
border: 0;

}

.mn {
background: url('glavnaja.jpg') no-repeat;
width: 700px;
height: 456px;
}

.logo_header{
width: 700px;
height: 269px;
background: url('logo.jpg') no-repeat;
}

 

nu vot es gribu lai tas content būtu centrā tikai nesakiet lai izmantotu <center></center> kā ar css var to visu centrēt? css esmu nulle

Link to comment
Share on other sites

×
×
  • Create New...