Hi! Regarding your question about why the description of the creator isn't visible on your project, I took a look, and when reviewing your code for the creator section, I refactored your code like so:
For the HTML portion:
<section class="creator">
<figure>
<img
class="creator-avatar"
src="images/image-avatar.png"
alt= "Jules Wyvern"
loading= "lazy"
/>
<figcaption class="offscreen">Jules Wyvern</figcaption>
</figure>
<p class="creator-description">
Creation of <a href="#">Jules Wyvern</a>
</p>
</section>
For the CSS portion:
.creator {
display: flex;
align-items: center;
gap: 1rem;
}
.creator-avatar {
width: 33px;
height: 33px;
object-fit: cover;
border-radius: 50%;
border: 1px solid var(--white);
}
As for the HTML, I removed the extra nested <div> and made the <section> the flex container for the creator avatar and description since it's the logical parent for the avatar and description while simplifying the HTML structure. In my opinion, removing the extra wrapper <div> and making the <section> the parent flex container is the more straightforward and readable approach. It's also semantically correct and a more efficient way to use Flexbox. This approach will offer greater flexibility in the long run, as it's easier to maintain or modify in the future.
I refactored your CSS to align with the changes I suggested in your HTML and removed overflow: hidden. With the width, height, object-fit: cover, and border-radius: 50% properties set, your avatar image will be properly enclosed within a circular shape without needing overflow control. Removing overflow: hidden; in this context also avoids hiding any nearby elements inadvertently. I also renamed the avatar class from .avatar-creator to .creator-avatar to maintain a consistent naming convention with .creator and .creator-description. Using the 'creator' prefix across related classes will help indicate that these three classes belong to the same component, improving maintainability and readability.
To improve readability in your CSS, consider adding blank lines between your CSS rules/rule sets. This will make it easier to locate and understand each set of styles, which can be helpful for maintenance.
I hope these suggestions help, and let me know if I can clarify anything!