Hi everyone, I hope you're all doing well.
I'm a beginner in web development and I've been following a tutorial on YouTube. However, at around the 5:20 timestamp, I noticed that my code is not producing the same result as shown in the video. Can someone please help me figure out what's wrong?
Edit: I attempted changing to display: inline-flex;
, but the issue still persists.
Expected Result based on video:
https://i.sstatic.net/7S2d4.png
Actual Result I am getting:
https://i.sstatic.net/fX9O7.png
.sidebar header .image-text {
display: flex;
align-items: center;
}
<nav class="sidebar">
<header>
<!-- ===== Logo ===== -->
<div class="image-text">
<span class="image">
<img src="https://via.placeholder.com/100jpg" alt="candlestick logo">
</span>
</div>
<!-- ===== Logo Text ===== -->
<div class="text header-text">
<span class="name">TradeJournal</span>
<span class="creator">By RS</span>
</div>
</header>
</nav>