bonjour à tous
je ne comprends pas pourquoi mon header recouvre ma partie gauche et ma partie centrale quelqu'un peut il m'aider?
on ne le voit pas du premier coup d'oeil mais mon bloc gauche (news) et mon bloc central (accueil) sont recouvert sur 150 px par mon header (menu)
je n'ai pour l'instant donné aucun style au texte et autre, je voudrais juste que mes blocs soient bien positionnés!
deuxième petite question comment faire pour que ma partie gauche prenne la même taille (en vertical) que ma partie centrale qui elle est amené à avoir des hauteurs differente en fonction de son contenu?
j'ai déjà tenté de remedier à ces problèmes en regardant sur alsacréation openweb ou autre et malgré ça je n'y arrive pas, alors svp ne me renvoyé pas vers un tuto si c'est possible! help!
css et xhtml valide w3c
mon prototype de site:
http://ayiore.free.fr/agua/sitephp/
ma css:
mon index:
Modifié par ayiore (10 Dec 2005 - 14:59)
je ne comprends pas pourquoi mon header recouvre ma partie gauche et ma partie centrale quelqu'un peut il m'aider?
on ne le voit pas du premier coup d'oeil mais mon bloc gauche (news) et mon bloc central (accueil) sont recouvert sur 150 px par mon header (menu)
je n'ai pour l'instant donné aucun style au texte et autre, je voudrais juste que mes blocs soient bien positionnés!
deuxième petite question comment faire pour que ma partie gauche prenne la même taille (en vertical) que ma partie centrale qui elle est amené à avoir des hauteurs differente en fonction de son contenu?
j'ai déjà tenté de remedier à ces problèmes en regardant sur alsacréation openweb ou autre et malgré ça je n'y arrive pas, alors svp ne me renvoyé pas vers un tuto si c'est possible! help!

css et xhtml valide w3c
mon prototype de site:
http://ayiore.free.fr/agua/sitephp/
ma css:
/********************************************************************************************************/
/*** général ***/
.conteneur { /*le conteneur global du site, qui sera centré */
width: 780px;
position: absolute;
left: 50%;
margin-left: -390px;
background-color:#FFFFFF;
}
body {
margin: 0;
padding: 0;
text-align: center;
background-color:white;
background-image:url(back_fade.jpg);
}
#menu {
position: absolute;
width : 780px;
height: 150px;
background: url(img/menu/aguaban.gif) top left no-repeat;
}
#news
{
float: left;
width: 150px;
}
#centre
{
margin-left: 150px;
width: 630px;
}
#pied
{
margin: 0 auto;
width: 780px;
height: 80px;
font-size: 12px;
text-align: center;
background-color: #FFFFFF;
}
/********************************************************************************************************/
/*** 1 accueil ***/
/********************************************************************************************************/
#menu1 {
position: absolute;
width : 66px;
height: 18px;
left: 217px;
top: 1px;
}
#menu2 {
position: absolute;
width : 121px;
height: 18px;
left: 224px;
top: 21px;
}
#menu3 {
position: absolute;
width : 88px;
height: 23px;
left: 236px;
top: 41px;
}
#menu4 {
position: absolute;
width : 81px;
height: 14px;
left: 242px;
top: 66px;
}
#menu5 {
position: absolute;
width : 98px;
height: 18px;
left: 245px;
top: 82px;
}
#menu6 {
position: absolute;
width : 194px;
height: 22px;
left: 246px;
top: 102px;
}
#menu7 {
position: absolute;
width : 78px;
height: 15px;
left: 245px;
top: 125px;
}
#menu1:hover {
width : 66px;
height: 18px;
left: 217px;
top: 1px;
background: url(accueil.jpg) top left no-repeat;
z-index: 100;
}
#menu2:hover {
width : 121px;
height: 18px;
left: 224px;
top: 21px;
background: url(visite.jpg) top left no-repeat;
z-index: 100;
}
#menu3:hover {
width : 88px;
height: 23px;
left: 236px;
top: 41px;
background: url(plannings.jpg) top left no-repeat;
z-index: 100;
}
#menu4:hover {
width : 81px;
height: 14px;
left: 242px;
top: 66px;
background: url(activites.jpg) top left no-repeat;
z-index: 100;
}
#menu5:hover {
width : 98px;
height: 18px;
left: 245px;
top: 82px;
background: url(vieduclub.jpg) top left no-repeat;
z-index: 100;
}
#menu6:hover {
width : 194px;
height: 22px;
left: 246px;
top: 102px;
background: url(planacces.jpg) top left no-repeat;
z-index: 100;
}
#menu7:hover {
width : 78px;
height: 15px;
left: 245px;
top: 125px;
background: url(contacts.jpg) top left no-repeat;
z-index: 100;
}
mon index:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="styles.css" rel="stylesheet" title="styles" type="text/css" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<title>.::agua viva::.</title>
</head>
<body>
<div class="conteneur">
<div id="menu" >
<?php
include('menu.php');
?>
</div>
<div id="news" >
<?php
include('news.php');
?>
</div>
<div id="centre" >
<?php
$pageOK = array('accueil' => 'accueil.php',
'visite' => 'visite.php',
'plannings' => 'planningStud1.php',
'planningstud2' => 'planningStud2.php',
'planningsaqua' => 'planningaqua.php',
'activites' => 'activites.php',
'vieduclub' => 'accueil.php',
'planacces' => 'accueil.php',
'contacts' => 'contacts.php',);
if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])))
{include($pageOK[$_GET['page']]);}
else
{include('accueil.php');}
?>
</div>
<div id="pied">
<?php
include('pied.php');
?>
</div>
</div>
</body>
</html>
Modifié par ayiore (10 Dec 2005 - 14:59)