<html>
<div style="width:200px;">
<div style="background:red;height:5px"></div>
<div style="background:yellow">
Magnets?
</div>
<div style="background:green;height:5px"></div>
</div>
</html>
Rendering with "Magnets?" wrapped in h3 tagsPourquoi ces divs se repoussent-ils?
Comment se fait le cessez divs être contiguë "aimants?" est enveloppé dans un paragraphe ou une balise d'en-tête?
Merci! Définir les marges par défaut à 0 fonctionne, mais pourquoi la div ne s'étend pas avec le contenu? –