Centrering af div's
Hejsa,Jeg er ved at lave en topmenu og har i den forbindelse en del problemer. Menuen er delt op i 4 divs (flere bliver tilføjet senere), problemet er at de skal centreres (side om side).
Dette er min side: http://www.tackleprices.com/merchant/index.php
CSS:
-----------------------------------------
body {margin:0px;}
.center {text-align:center}
#tab1 {
position: relative;
top: 39px;
height: 30px;
width: 10%;
margin: 0px;
background-color: #002651;
}
#tab2 {
position: relative;
top: 39px;
height: 30px;
width: 10%;
margin: 0px;
background-color: #002651;
}
#tab3 {
position: relative;
top: 39px;
height: 30px;
width: 10%;
margin: 0px;
background-color: #002651;
}
#tab4 {
position: relative;
top: 39px;
height: 30px;
width: 10%;
margin: 0px;
background-color: #002651;
}
HTML:
-----------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Tackleprices.com | Merchant Area</title>
<link href="/merchant/styles/default.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="center">
<div id="tab1">tab1</div>
<div id="tab2">tab2</div>
<div id="tab3">tab3</div>
<div id="tab4">tab4</div>
</div>
<div id="mainmenu">
<p> </p>
</div>
<div id="bottom-menu">
<p> </p>
</div>
</body>
</html>
