I am new to HTML and CSS, trying to practice formulating a few things but my efforts are proving futile.
Below is the code and images for your reference. I would appreciate your opinion.
.container {
display: block;
width: 200px;
height: 120px;
}
.picture {
width: 40px;
height: 40px;
border-radius: 50%;
display: inline-block;
}
.oliver {
display: inline-block;
margin-left: 0px;
font-weight: bold;
height: 20px;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
vertical-align: top;
width: 50px;
}
.popular {
font-size: 15px;
width: 50px;
height: 50px;
color: #666;
display: inline-block;
padding-left: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-top: 0px;
vertical-align: center;
}
.follow-button {
display: inline-block;
width: 90px;
height: 30px;
margin-top: 0px;
padding: 0px;
border: 1px solid #ccc;
border-radius: 9px;
background-color: #0f6fb0;
cursor: pointer;
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
color: white;
font: verdana;
}
.follow-div {
display: inline-block;
width: 20px;
margin-left: 0px;
margin-top: 8px;
margin-bottom: 0px;
padding: 0px;
vertical-align: top;
}
<div class="container">
<img class="picture" src="/Users/riyazmohamed/Desktop/HTML-CSS/Intro-to-html/channel-picture/cat.jpeg" alt="cat" />
<p class="oliver">Oliver</p>
<p class="popular">The Popular Cat</p>
</div>
<div class="follow-div">
<button class="follow-button">Follow</button>
</div>
I want the content of "The Popular Cat" to be under Oliver, like it's under the picture.
Please help me achieve this, thank you.
Content needs to be formulated under Oliver, please assist me in getting it done according to the sample image provided.