Tengo un elemento img establecido junto a un div. He intentado un par de enfoques diferentes para eliminar el salto de línea que está ocurriendo entre los dos, pero no he tenido éxito. ¡Cualquier contribución será muy apreciada!Eliminar un salto de línea después de IMG
CSS
#newsMainBody
{
margin-right: auto;
margin-left: auto;
background:#61bc49;
width: 750px;
height: 900px;
font-family:"sans-serif";
text-align:left;
-moz-border-radius: 10px;/*mozilla*/
z-index: 1;
white-space: nowrap;
}
#starOfMonth
{
background: #ffff99;
width: 275px;
height: 300px;
text-align: center;
font-family:"sans-serif";
white-space: normal;
}
HTML
<div id="newsMainBody">
<img src="img/farm.jpg" alt="Farm photo" />
<div id="starOfMonth">
<br />
<font style="font-weight:bold;font-size:medium; color:Purple;">DooLittle Farms Childcare</font><br />
<font style="font-size:small;">"We're Growing Great Kids"</font><br />
<img id="starImg" src="img/gold-star.jpg" alt="Star of the Week" width="200" height="200"/><br />
Our Star Of The Week!
</div>
</div>
¿Qué dos elementos se refiere? la imagen y? – Ruel
El img y el div id = # starOfMonth elem. Cuando obtengo una vista previa en cualquier navegador, el elemento div está directamente debajo del img elem –