Bonjour
Je code actuellement un design et j'ai certains div qui ne prennent pas assez de place
Petit shema pour illustrer :
Voila ce que j'obtiens : (le bloc blanc represente l'espace vide)
http://img158.imageshack.us/img158/4622/capq7.th.gif
et ce que je veux :
http://img158.imageshack.us/img158/6136/veuxcaud6.th.gif
Je trouve pas l'erreur ou ce qui manque donc si vous pouviez m'aidez ca serait cool
Voila le code de mon fichier html :
le code de ma feuille de style :
merci d'avance pour toute l'aide que vous pourriez me donner
Modifié par Florent V. (26 Jul 2007 - 15:49)
Je code actuellement un design et j'ai certains div qui ne prennent pas assez de place
Petit shema pour illustrer :
Voila ce que j'obtiens : (le bloc blanc represente l'espace vide)
http://img158.imageshack.us/img158/4622/capq7.th.gif
et ce que je veux :
http://img158.imageshack.us/img158/6136/veuxcaud6.th.gif
Je trouve pas l'erreur ou ce qui manque donc si vous pouviez m'aidez ca serait cool
Voila le code de mon fichier html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Création d'un design à 2 colonnes - 1. Le code XHTML</title>
<link href="grids.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="ie.css" media="screen" />
<![endif]-->
</head>
<body>
<div id="global">
<div id="header">
<h1><img src="images/logo.gif" alt="logo" width="246" height="85" /></h1>
</div>
<div id="center">
<div id="content">
<p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
<div id="sidebar">
<p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
<div id="footer"><p align="center">footer</p>
</div>
</div>
</body>
</html>
le code de ma feuille de style :
html, body {
height: 100%;
margin: 0;
}
body{
background-color:#fff;
background-image:url(images/html.png);
background-repeat:repeat-x;
margin:0px;
}
div#header {
background:url(images/fondheader.gif) repeat-x;
height: 175px;
}
div#header h1 {
margin: 0;
}
div#header img {
margin: 0;
position: absolute;
top: 15px;
left: 30px;
}
ul#menu {
margin: 0;
padding: 0;
list-style: none;
}
div#global {
min-height: 100%;
width: 900px;
padding: 0 10px;
margin: 0 auto;
position: relative;
padding: 0 10px;
background: url(images/global.png) center repeat-y;
}
div#center {
padding-bottom: 50px;
overflow: auto;
height:100%;
}
div#footer {
position: absolute;
width: 900px;
bottom: 0;
background: url(images/footer.png) repeat-x;
}
div#content {
float: left;
width: 450px;
height:100%;
background:url(images/fondgar.gif);
}
div#sidebar {
float: right;
width: 450px;
height:100%;
background:url(images/fondfille.gif);
}
merci d'avance pour toute l'aide que vous pourriez me donner
Modifié par Florent V. (26 Jul 2007 - 15:49)