Coin arrondi avec div, il me manque presque rien je crois!

Invité
Invité n'ayant pas de compte PHPfrance

24 nov. 2008, 20:48

Bonjour,

Je suis en train de faire une série de div pour obtenir un rectangle aux coins arrondis mais je n'arrive pas à combler la dernière ligne, entre mes coins du bas,

en image :

Image

le code :

Code : Tout sélectionner

<div style="width: 90%; padding: 0px 0px 0px 0px; margin-left: auto; margin-right: auto;"> <div style="width: 10px; height: 10px; background-image: url('images/corner3/bottomleft.gif'); float: left;"></div> <div style="width: 10px; height: 10px; background-image: url('images/corner3/bottomright.gif'); float: right;"></div> <div style="text-align: left; background-color: white; padding: 5px 5px 0px 5px;"> <a href="mailto:email"><img src="images/mail.png" alt="Email : email" title="Email : email" style="vertical-align: middle;" /></a> <span style="font-weight: bold ;">LOREM IPSUM IS SIMPLY DUMMY TEXT OF THE PRINTING</span> - <font size="1">Pays</font>, <font size="1">Ville</font> <img src="images/sida2.gif" alt="[SIDA]" title="[SIDA]" style="vertical-align: middle;" /> </div> <div style="text-align: right; color: #CC3300; font-size: 70%; padding: 0px 5px 5px 0px; background-color: white;">Le 08 Octobre 2006 a 10h35</div> <div style="padding: 10px 15px 15px 15px; text-align: justify; background-color: #FFCC99;"> Lorem Ipsum 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. </div> <div style="width: 10px; height: 10px; background-image: url('images/corner3/topleft.gif'); float: left;"></div> <div style="height: 10px; background-color: #FFCC99; float: left;"></div> <div style="width: 10px; height: 10px; background-image: url('images/corner3/topright.gif'); float: right;"></div> </div>
La dernière ligne (la manquante) se rempli bien que lorsqu'il y'a du texte mais il ne doit pas y en avoir.

Pouvez vous m'aider?
D'avance merci

Invité
Invité n'ayant pas de compte PHPfrance

24 nov. 2008, 21:21

Résolu :

Code : Tout sélectionner

<div style="width: 90%; padding: 0px 0px 0px 0px; margin-left: auto; margin-right: auto; background-color: #FFCC99; overflow: hidden;"> <div style="width: 10px; height: 10px; background-image: url('images/corner3/bottomleft.gif'); float: left;"></div> <div style="width: 10px; height: 10px; background-image: url('images/corner3/bottomright.gif'); float: right;"></div> <div style="text-align: left; background-color: white; padding: 5px 5px 0px 5px;"> <a href="mailto:email"><img src="images/mail.png" alt="Email : email" title="Email : email" style="vertical-align: middle;" /></a> <span style="font-weight: bold ;">LOREM IPSUM IS SIMPLY DUMMY TEXT OF THE PRINTING</span> - <font size="1">Pays</font>, <font size="1">Ville</font> <img src="images/sida2.gif" alt="[SIDA]" title="[SIDA]" style="vertical-align: middle;" /> </div> <div style="text-align: right; color: #CC3300; font-size: 70%; padding: 0px 5px 5px 0px; background-color: white;">Le 08 Octobre 2006 a 10h35</div> <div style="padding: 10px 15px 5px 15px; text-align: justify; background-color: #FFCC99;"> Lorem Ipsum 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. </div> <div style="width: 10px; height: 10px; background-image: url('images/corner3/topleft.gif'); float: left;"></div> <div style="height: 10px; background-color: #FFCC99; float: left;"></div> <div style="width: 10px; height: 10px; background-image: url('images/corner3/topright.gif'); float: right;"></div> </div>
Si un admin du forum peux signaler que cela est résolu.
D'avance merci.

Avatar du membre
Administrateur PHPfrance
Administrateur PHPfrance | 13231 Messages

24 nov. 2008, 23:18

Modération :
Puisque ta question est résolue, j'ajoute le tag [Résolu]
pour indiquer aux personnes qui voudront consulter ce sujet qu'il contient une solution.

Tu peux réaliser cette opération toi-même
en cliquant sur le bouton Image qui s'affiche en haut à gauche de ce sujet
si tu as posté le 1er message en tant que membre (inscrit et identifié).

Alors... inscris-toi !!! ;)
Connaître son ignorance est la meilleure part de la connaissance
Pour un code lisible : n'hésitez pas à sauter des lignes et indenter

twitter - site perso - Github - Zend Certified Engineer