Despite seeing many inquiries about float
, I still can't pinpoint what's causing my issue. My objective is simple:
GREETINGS
FRIEND
I aim for it to align just to the left of the unordered list. Referencing this solution, I attempted adding clear:both to the parent div. Additionally, following advice from this post, I included overflow:hidden in the parent elements. Unfortunately, neither method yielded results.
In each scenario, the UL element remains positioned below GREETINGS FRIEND and rightwards.
<div>
<div style"float:left;">
<div>GREETINGS</div>
<div>FRIEND</div>
</div>
<div style="float:right;">
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
</div>
</div>