I am brand new to css html and I'm attempting to create a comment display system similar to that of YouTube using only CSS. My goal is to have an image of the commenter displayed, followed by their username and comment text listed beside it. So far, I've managed to achieve this (Codepen Link). However, I need assistance in arranging the text and username below the user's picture to mimic the layout seen on YouTube comments.
.vjs-comment-list {
list-style-type: none;
position: relative;
background: #fff;
font-size: 3;
position: relative;
max-width: 250px;
-moz-user-select: text !important;
margin-bottom: 10px;
font-family: "Times New Roman", Times, Arial, sans-serif !important;
}
.comment-user-name {
top: 0;
left: 80px;
font-size: 10;
font-family: "Times New Roman", Times, Arial, sans-serif !important;
}
.comment-profile-pic {
top: 0;
left: 0;
width: 48px;
height: 48px;
background-repeat: no-repeat;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAJdEVYdENvbW1lbnQAKlKRRNAAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAK3SURBVFhH...
<ul style="list-style-type: none;">
<li>
<div class="comment-profile-pic"></div>
<div class="comment-user-name">User 1</div>
<div class="vjs-comment-list">testing comments testing comments testing comments testing comments testing comments testing comments testing commentstesting comments</div>
</li>
<li>
<div class="comment-profile-pic"></div>
<div class="comment-user-name">User 1</div>
<div class="vjs-comment-list">testing comments testing comments testing comments testing comments testing comments testing comments testing commentstesting comments</div>
</li>
</ul>
Any help or guidance on how to properly align the text and username below the user's picture to resemble YouTube comments would be greatly appreciated.