un methode smiliaire de clear: both ?
Bonsoir à tous,
Vaut mieux une image plutôt qu'un long explication mal formulé (surtout de ma part)...
Voici l'aperçu en question :
http://img171.imageshack.us/img171/5619/001jo5.jpg
Ne faites pas attention aux présentation (couleur etc...), je souhaite que le cadre blanc se ferme bien et je connais une solution qui n'est pas forcement agréable c'est d'ajouter un div vierge avec la propriété clear: both...
Voici le code source :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Prog Créatif</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="design.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="zone_idef">
S'inscrire | Se connecter
</div>
<h1>blabla</h1>
<h2>tititatatoto</h2>
<ul>
<li class="first"><a href="xx.php" accesskey="1" title="">xx</a></li>
<li><a href="xx.php" accesskey="2" title="">xx</a></li>
<li><a href="xx.php" accesskey="3" title="">xx</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="colOne">
<h2>xxxxxxt</h2>
<p>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
<br />
<h3><a href="http://www.handy-mobil.fr" title="Visiter le site www.handy-mobil.fr">www.handy-mobil.fr</a></h3>
<div class="contenu_article">
<img src="images/ico_handymobil.jpg" alt="" width="102" height="102" class="image" />
<p class="indent"><strong>Handy Mobil</strong> est une association à but non lucratif (loi de 1901), destinée à aider au déplacement des personnes à mobilité réduite, dans la région d'Annemasse et la Haute-Savoie.</p>
</div>
</div>
<div id="col_gauche">
<h3>Accessibilité</h3>
<ul>
<li class="first"><a href="http://www.temesis.com/" title="Lien externe vers Temesis">Temesis</a></li>
<li><a href="http://www.accessiweb.org/" title="Lien externe vers Accessiweb">Accessiweb</a></li>
</ul>
</div>
</div>
<div id="footer">
<p>Plan du site | Sitemap</p>
<p>XHTML & CSS</p>
</div>
</body>
</html> |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
| /*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
* {
padding: 0;
margin: 0;
}
body {
margin: 0;
padding: 0;
background: #311C00 url(images/background_corps.jpg);
text-align: justify;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
color: #9B8767;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
font-family: Georgia, "Times New Roman", Times, serif;
color: #E8D6B4;
}
h2, h3 {
margin: 0 0 20px 0;
padding: 0 0 10px 0;
background: url(images/hr_corp_a.gif) repeat-x left bottom;
text-transform: lowercase;
letter-spacing: -1px;
}
h2 {
font-size: 25px;
}
h3 {
font-size: 17px;
text-decoration: none;
}
h3 a {
text-decoration: none;
}
h3 a:hover {
text-decoration: none;
color: #B6E13A;
}
p, ol, ul {
line-height: 160%;
}
ul {
margin-left: 0;
padding-left: 0;
list-style: none;
}
ul li {
padding: 2px 0 5px 0;
background: url(images/hr_col_b.gif) repeat-x;
}
ul li.first {
background: none;
}
a {
color: #D9C09A;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
strong {
color: #D9C09A;
}
#wrapper {
background: url(images/background_header.jpg) repeat-x;
}
/* Header */
#zone_idef {
float: right;
margin-top: 10px;
}
#header {
width: 730px;
height: 250px;
margin: 0 auto;
}
#header * {
text-transform: lowercase;
color: #FFFFFF;
}
#header h1 {
float: left;
padding: 30px 0 0 0;
letter-spacing: -2px;
font-size: 36px;
}
#header h2 {
float: left;
padding: 50px 0 0 6px;
background: none;
font-size: 12px;
font-weight: normal;
}
#header h2 a {
text-decoration: none;
}
#header ul {
float: right;
margin: 0;
padding: 90px 0 0 0;
list-style: none;
}
#header li {
display: inline;
}
#header li a {
display: block;
float: left;
padding: 0 15px;
border-left: 1px solid #7DD2FA;
}
#header li.first a {
border: none;
}
/* Content */
#content {
width: 730px;
margin: 0 auto;
}
#colOne {
float: right;
width: 500px;
}
#col_gauche {
float: left;
width: 184px;
}
#col_gauche h3 {
margin-top: 10px;
text-align: left;
}
/* Footer */
#footer {
clear: both;
width: 730px;
margin: 20px auto;
padding: 20px 0;
background: url(images/hr_col_b.gif) repeat-x;
}
#footer p {
margin: 0;
padding: 0;
text-transform: lowercase;
text-align: center;
}
.contenu_article {
background-color: #fff;
padding-top: 20px;
padding-left: 5%;
padding-right: 5%;
width: 90%;
}
.indent {
margin-top: 0;
margin-left: 130px;
}
.image {
float: left;
margin-right: 23px;
border: solid 2px #663300;
} |
je vous remercie beaucoup d'avance