Je suis confronté à un petit problème...
Comment arriver à ce resultat: http://php.studiopress.be/testTom/divcentree/
sans tableaux.
VERSION TABLEAUX:
css:
Code
table#header{ width:100%; height:92px;
border:0px; margin:0px; padding:0px
}
td#header_left{ width:50%; height:92px;
border:0px; margin:0px; padding:0px;
background-color:#B73D1A
}
td#header_right{width:50%; height:92px;
border:0px; margin:0px; padding:0px;
background-color:#D47849
}
html:
Code
<table id="header" cellpadding="0" cellspacing="0">
<tr>
<td id="header_left"></td>
<td> <img src="media/img/header.jpg" alt="tetiere" /></td>
<td id="header_right"></td>
</tr>
</table>
TEST VERSION DIV
css:
Code
.c_header_repeat{width:100%;
}
.c_header_repeat_left{float:left;width:10%;
height:92px; margin:0px;
padding:0px; background-color:#B73D1A;
}
.c_header_center{float:left; width:750px;
height:92px; margin:0px; padding:0px;
background-color:#B73D1A
}
.c_header_repeat_right{float:right;width:10%;
height:92px; margin:0px;
padding:0px; background-color:#D47849
}
html:
Code
<div class="c_header_repeat">
<div class="c_header_repeat_left"></div>
<div class="c_header_center"><img src="media/img/header.jpg" alt="tetiere" /></div>
<div class="c_header_repeat_right"></div>
</div>
Mais avec ce code, dès que la page est trop petit pour afficher les 10% de droite
ma div saute en dessous... et dès que c'est plus grand des écart se formee entre les div.
Le problème c'est que ma div centrale à une taille bien définie (750px) et que ma div de gauche de droite doivent s'étendre respectivement vers la gauche et vers la droite.
Comment faire ?
Merci d'avance.