here is my code:
https://codepen.io/cquyywmh-the-builder/pen/VYYxamM
my question is; why is it that when I put multiple characters in <div>
like <div> A ♠</div>
, then the two characters will be in the same line like this:
but if you do like two <div>
like
<div>A</div>
<div>♠</div>
they would be on different lines.
and are there other way to make it so that the A and would be on different line without using separate divs? I just got this solution from https://www.youtube.com/watch?v=-0_CDnEoAdg&ab_channel=PreCodeCamp so I am kinda getting the impostor syndrome when I solve this code with his solution.
Can you also give my tips too on how to think critically to solve a problem if you are stuck on one. the tip that I got from a programming related course is that if you cant solve a problem even after thinking about it (minimum 15 mins) you should try using google already because at that point, further thinking about the problem will solve nothing. What do you think?